Class TestColorStringParser

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.martiansoftware.jsap.stringparsers.TestColorStringParser
All Implemented Interfaces:
junit.framework.Test

public class TestColorStringParser
extends junit.framework.TestCase
A series of tests for the ColorStringParser
Author:
Marty Lamb
See Also:
ColorStringParser
  • Constructor Summary

    Constructors
    Constructor Description
    TestColorStringParser​(java.lang.String arg0)
    Constructor for TestColorStringParser.
  • Method Summary

    Modifier and Type Method Description
    void testByName()
    Tests the ability to parse color names as in java.awt.Color fields.
    void testFloatRGB()
    Tests the ability to parse tuples of floats representing RGB values.
    void testHexRGB()
    Tests the ability to parse hexadecimal strings as RGB values.
    void testIntegerRGB()
    Tests the ability to parse tuples of integers representing RGB values.

    Methods inherited from class junit.framework.TestCase

    countTestCases, getName, run, run, runBare, setName, toString

    Methods inherited from class junit.framework.Assert

    assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • TestColorStringParser

      public TestColorStringParser​(java.lang.String arg0)
      Constructor for TestColorStringParser.
      Parameters:
      arg0 - name of this test
  • Method Details

    • testIntegerRGB

      public void testIntegerRGB()
      Tests the ability to parse tuples of integers representing RGB values.
    • testFloatRGB

      public void testFloatRGB()
      Tests the ability to parse tuples of floats representing RGB values.
    • testHexRGB

      public void testHexRGB()
      Tests the ability to parse hexadecimal strings as RGB values.
    • testByName

      public void testByName()
      Tests the ability to parse color names as in java.awt.Color fields.