Search in sources :

Example 1 with CommandList

use of org.apache.ignite.internal.commandline.CommandList in project ignite by apache.

the class GridCommandHandlerClusterByClassTest method testHelp.

/**
 */
@Test
public void testHelp() throws Exception {
    injectTestSystemOut();
    assertEquals(EXIT_CODE_OK, execute("--help"));
    String testOutStr = testOut.toString();
    for (CommandList cmd : CommandList.values()) assertContains(log, testOutStr, cmd.toString());
    assertNotContains(log, testOutStr, "Control.sh");
    checkHelp(testOutStr, "org.apache.ignite.util/" + getClass().getSimpleName() + "_help.output");
}
Also used : CommandList(org.apache.ignite.internal.commandline.CommandList) GridAbstractTest(org.apache.ignite.testframework.junits.GridAbstractTest) Test(org.junit.Test)

Aggregations

CommandList (org.apache.ignite.internal.commandline.CommandList)1 GridAbstractTest (org.apache.ignite.testframework.junits.GridAbstractTest)1 Test (org.junit.Test)1