Class TestUsageString

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.martiansoftware.jsap.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
    Creates a new TestCase with the specified name.
  • Method Summary

    Modifier and Type
    Method
    Description
    static junit.framework.Test
    Returns a suite of tests defined by this class.
    void
    Tests usage info for a single option, both required and not required.
    void
    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 Details

    • TestUsageString

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

    • 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.