public class GroupTest extends GroupTestCase
Modifier and Type | Field and Description |
---|---|
static Command |
COMMAND_GRACEFUL |
static Command |
COMMAND_RESTART |
static Command |
COMMAND_START |
static Command |
COMMAND_STOP |
Constructor and Description |
---|
GroupTest() |
Modifier and Type | Method and Description |
---|---|
static Group |
buildAntGroup() |
static Group |
buildApacheCommandGroup() |
static Group |
buildApachectlGroup() |
void |
testAppendUsage_NoExpand() |
void |
testAppendUsage_NoExpandOrName() |
void |
testAppendUsage_NoName() |
void |
testAppendUsage_NoOptional() |
void |
testAppendUsage_OptionalChildGroup() |
void |
testAppendUsage_OptionalChildGroupNoSetting() |
void |
testAppendUsage_RequiredChildGroup() |
void |
testAppendUsage_WithArgs() |
void |
testAppendUsage() |
void |
testCanProcess_BadMatch() |
void |
testCanProcess_NullMatch() |
void |
testCanProcess() |
void |
testGetDescription() |
void |
testGetPreferredName() |
void |
testHelpLines_NoExpanded() |
void |
testHelpLines_NoName() |
void |
testHelpLines() |
void |
testIsRequired_ChildFlagMinimum()
Tests isRequired() for a child group that has both the required flag and
a minimum constraint set.
|
void |
testIsRequired_ChildFlagNoMinimum()
Tests isRequired() for a child group that has the required flag set, but
no minimum constraint.
|
void |
testIsRequired_ChildNoFlagMinimum()
Tests isRequired() for a child group that has a minimum constraint, but
the required flag is not set.
|
void |
testIsRequired_ChildNoFlagNoMinimum()
Tests isRequired() for a child group if neither the required flag nor a
minimum constraint is set.
|
void |
testIsRequired_ParentMiminum()
Tests isRequired() for the root group with a minimum constraint.
|
void |
testIsRequired_ParentNoMinimum()
Tests isRequired() for the root group when no minimum constraint is set.
|
void |
testPrefixes() |
void |
testProcess_Nested() |
void |
testProcess() |
void |
testProcessAnonymousArguments() |
void |
testProcessOptions() |
void |
testTriggers() |
void |
testValidate_MissingOption() |
void |
testValidate_RequiredChild() |
void |
testValidate_UnexpectedOption() |
void |
testValidate() |
commandLine
assertContentsEqual, assertListContentsEqual, list, list, list, list, list, list, list, list
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
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
public static final Command COMMAND_START
public static final Command COMMAND_STOP
public static final Command COMMAND_RESTART
public static final Command COMMAND_GRACEFUL
public GroupTest()
public static Group buildApacheCommandGroup()
public static Group buildApachectlGroup()
public static Group buildAntGroup()
public void testProcessAnonymousArguments() throws OptionException
testProcessAnonymousArguments
in class GroupTestCase
OptionException
public void testProcessOptions() throws OptionException
testProcessOptions
in class GroupTestCase
OptionException
public void testCanProcess()
testCanProcess
in class OptionTestCase
public void testCanProcess_BadMatch()
public void testCanProcess_NullMatch()
public void testPrefixes()
testPrefixes
in class OptionTestCase
public void testProcess() throws OptionException
testProcess
in class OptionTestCase
OptionException
public void testProcess_Nested() throws OptionException
OptionException
public void testTriggers()
testTriggers
in class OptionTestCase
public void testValidate() throws OptionException
testValidate
in class OptionTestCase
OptionException
public void testValidate_UnexpectedOption()
public void testValidate_MissingOption()
public void testValidate_RequiredChild() throws OptionException
OptionException
public void testAppendUsage()
testAppendUsage
in class OptionTestCase
public void testAppendUsage_NoOptional()
public void testAppendUsage_NoExpand()
public void testAppendUsage_NoExpandOrName()
public void testAppendUsage_NoName()
public void testAppendUsage_WithArgs()
public void testAppendUsage_OptionalChildGroup()
public void testAppendUsage_OptionalChildGroupNoSetting()
public void testAppendUsage_RequiredChildGroup()
public void testGetPreferredName()
testGetPreferredName
in class OptionTestCase
public void testGetDescription()
testGetDescription
in class OptionTestCase
public void testHelpLines()
testHelpLines
in class OptionTestCase
public void testHelpLines_NoExpanded()
public void testHelpLines_NoName()
public void testIsRequired_ChildNoFlagNoMinimum()
public void testIsRequired_ChildNoFlagMinimum()
public void testIsRequired_ChildFlagNoMinimum()
public void testIsRequired_ChildFlagMinimum()
public void testIsRequired_ParentNoMinimum()
public void testIsRequired_ParentMiminum()
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.