@Test public void addInVmAcceptor() { page.navigateToMessaging(); page.selectView("Connections"); page.switchType("Type: In-VM"); page.addInVmAcceptor(NAME, SERVER); verifier.verifyResource(address, true); cliClient.executeCommand(remove); verifier.verifyResource(address, false); }
@Test public void removeInVmAcceptor() { cliClient.executeCommand(command); page.navigateToMessaging(); page.selectView("Connections"); page.switchType("Type: In-VM"); verifier.verifyResource(address, true); page.selectInTable(NAME, 0); page.remove(); verifier.verifyResource(address, false); }
@Test public void removeAcceptorProperties() { cliClient.executeCommand(command); cliClient.executeCommand(addProperty); page.navigateToMessaging(); page.selectView("Connections"); page.switchType("Type: In-VM"); page.selectInTable(NAME, 0); ConfigPropertiesFragment properties = page.getConfig().propertiesConfig(); properties.removeProperty("prop"); verifier.verifyAttribute(address, "params", "undefined", 500); cliClient.executeCommand(remove); }
@Test public void updateAcceptorProperties() { cliClient.executeCommand(command); page.navigateToMessaging(); page.selectView("Connections"); page.switchType("Type: In-VM"); page.selectInTable(NAME, 0); ConfigPropertiesFragment properties = page.getConfig().propertiesConfig(); ConfigPropertyWizard wizard = properties.addProperty(); boolean result = wizard.name("prop").value("test").finish(); assertTrue("Property should be added and wizard closed.", result); verifier.verifyAttribute(address, "params", "{\"prop\" => \"test\"}", 500); cliClient.executeCommand(remove); }
@Test public void updateAcceptorServerID() { cliClient.executeCommand(command); page.navigateToMessaging(); page.selectView("Connections"); page.switchType("Type: In-VM"); page.selectInTable(NAME, 0); page.edit(); ConfigFragment editPanelFragment = page.getConfigFragment(); editPanelFragment.getEditor().text("serverId", "0"); boolean finished = editPanelFragment.save(); assertTrue("Config should be saved and closed.", finished); verifier.verifyAttribute(address, "server-id", "0", 500); cliClient.executeCommand(remove); }