示例#1
0
  @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);
  }
示例#2
0
  @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);
  }