@Test @Override public void standaloneClientTest() throws Exception { try (EapClient client = new EapClient<>(EapConfiguration.builder().build())) { client.execute(GOOD_CMD); Assert.assertNotNull(client.getCommandResult()); } }
@BeforeClass public static void beforeClass() throws Exception { final EapConfiguration conf = EapConfiguration.builder().directory(EAP_HOME).xmx("2g").build(); container = new EapContainer<>(conf); final EapUser user = new EapUser(); user.setUsername(conf.getUsername()); user.setPassword(conf.getPassword()); user.setRealm(EapUser.Realm.MANAGEMENT_REALM); user.addRoles("role1", "role2"); container.addUser(user); container.start(); }