use of org.jboss.as.cli.impl.CommandContextConfiguration in project wildfly-core by wildfly.
the class ShutdownTestCase method test.
@Test
public void test() throws Exception {
serverController.start();
CommandContextConfiguration config = new CommandContextConfiguration.Builder().setController("remote+http://" + TestSuiteEnvironment.getServerAddress() + ":" + TestSuiteEnvironment.getServerPort()).build();
CommandContext ctx = CommandContextFactory.getInstance().newCommandContext(config);
ctx.handle("command-timeout set 60");
ctx.handle("connect");
ctx.handle("shutdown");
}
Aggregations