Пример #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);
  }
  @Test
  public void updateTopicsJndiNames() throws InterruptedException, TimeoutException, IOException {
    page.getConfig().topicsConfig();
    page.selectInTable(TOPIC);

    String jndiName = "java:/jndi-name" + RandomStringUtils.randomAlphanumeric(5);

    ConfigFragment editPanelFragment = page.getConfigFragment();

    editPanelFragment.edit().text("entries", jndiName);
    boolean finished = editPanelFragment.save();

    administration.reloadIfRequired();

    assertTrue("Config should be saved and closed.", finished);

    ModelNodeResult result = operations.readAttribute(TOPIC_ADDRESS, "entries");

    Assert.assertTrue(result.hasDefinedValue() && result.stringValue().contains(jndiName));
  }
 @Test
 public void removeJmsTopics() throws Exception {
   page.getConfig().topicsConfig();
   page.remove(TOPIC_TBR);
   new ResourceVerifier(TOPIC_TBR_ADDRESS, client).verifyDoesNotExist();
 }
 @Test
 public void addJmsTopics() throws Exception {
   page.getConfig().topicsConfig();
   page.addTopic(TOPIC_TBA, JNDI_TOPICS_NAME);
   new ResourceVerifier(TOPIC_TBA_ADDRESS, client).verifyExists();
 }