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:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor for TestColorStringParser.
  • Method Summary

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

    Methods inherited from class junit.framework.TestCase

    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, countTestCases, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, toString

    Methods inherited from class java.lang.Object

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

    • TestColorStringParser

      public TestColorStringParser(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.