Class TestUsageString

  • All Implemented Interfaces:
    junit.framework.Test

    public class TestUsageString
    extends junit.framework.TestCase
    Tests the ability to automatically create usage information.
    Author:
    Marty Lamb
    • Constructor Summary

      Constructors 
      Constructor Description
      TestUsageString​(java.lang.String arg0)
      Creates a new TestCase with the specified name.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static junit.framework.Test suite()
      Returns a suite of tests defined by this class.
      void testUsage1()
      Tests usage info for a single option, both required and not required.
      void testUsage2()
      Tests usage info for a Switch.
      • 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 Detail

      • TestUsageString

        public TestUsageString​(java.lang.String arg0)
        Creates a new TestCase with the specified name.
        Parameters:
        arg0 - the name for this TestCase.
    • Method Detail

      • suite

        public static junit.framework.Test suite()
        Returns a suite of tests defined by this class.
        Returns:
        a suite of tests defined by this class.
      • testUsage1

        public void testUsage1()
        Tests usage info for a single option, both required and not required.
      • testUsage2

        public void testUsage2()
        Tests usage info for a Switch.