Search in sources :

Example 1 with AeshCommands

use of org.jboss.as.cli.impl.aesh.AeshCommands in project wildfly-core by wildfly.

the class PatchHelpTestCase method testCLICommands.

@Test
public void testCLICommands() throws Exception {
    CommandContextImpl ctx = (CommandContextImpl) CommandContextFactory.getInstance().newCommandContext();
    AeshCommands commands = ctx.getAeshCommands();
    CommandContainer<CLICommandInvocation> container = commands.getRegistry().getCommand("patch", "patch");
    HelpSupport.checkCommand(null, container.getParser());
    for (CommandLineParser<CLICommandInvocation> child : container.getParser().getAllChildParsers()) {
        HelpSupport.checkCommand(container.getParser(), child);
    }
}
Also used : AeshCommands(org.jboss.as.cli.impl.aesh.AeshCommands) CLICommandInvocation(org.wildfly.core.cli.command.aesh.CLICommandInvocation) CommandContextImpl(org.jboss.as.cli.impl.CommandContextImpl) Test(org.junit.Test)

Aggregations

CommandContextImpl (org.jboss.as.cli.impl.CommandContextImpl)1 AeshCommands (org.jboss.as.cli.impl.aesh.AeshCommands)1 Test (org.junit.Test)1 CLICommandInvocation (org.wildfly.core.cli.command.aesh.CLICommandInvocation)1