public class OptionHandlerRegistryTest
extends junit.framework.TestCase
Modifier and Type | Class and Description |
---|---|
static class |
OptionHandlerRegistryTest.CustomType |
static class |
OptionHandlerRegistryTest.CustomTypeOptionHandler |
static class |
OptionHandlerRegistryTest.OhfTestBean |
static class |
OptionHandlerRegistryTest.OhfTestType |
Constructor and Description |
---|
OptionHandlerRegistryTest() |
Modifier and Type | Method and Description |
---|---|
void |
testCmdLineParserWithCustomRegistered()
Tests whether registering a handler works.
|
void |
testCmdLineParserWithUnregistered()
Tests whether unknown types raise an exception.
|
void |
testGetRegistry()
Tests whether OptionHandlerRegistry.getRegistry() returns an instance.
|
void |
testGetRegistryWithSingleton()
Tests whether OptionHandlerRegistry.getRegistry() is a real singleton.
|
void |
testOptionHandlerFactory() |
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, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
public void testGetRegistry()
public void testGetRegistryWithSingleton()
public void testCmdLineParserWithUnregistered()
public void testCmdLineParserWithCustomRegistered() throws org.kohsuke.args4j.CmdLineException
org.kohsuke.args4j.CmdLineException
public void testOptionHandlerFactory() throws org.kohsuke.args4j.CmdLineException
org.kohsuke.args4j.CmdLineException
Copyright © 2003-2016 Kohsuke Kawaguchi. All Rights Reserved.