示例#1
0
  @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 addRemoteAcceptor() {
    page.navigateToMessaging();
    page.selectView("Connections");
    // same fields in acceptor adding
    page.addDiscoveryGroup(NAME, BINDING);

    verifier.verifyResource(address, true);

    cliClient.executeCommand(remove);

    verifier.verifyResource(address, false);
  }
  @Test
  public void removeRemoteAcceptor() {
    cliClient.executeCommand(command);

    page.navigateToMessaging();
    page.selectView("Connections");

    verifier.verifyResource(address, true);

    page.selectInTable(NAME, 0);
    page.remove();

    verifier.verifyResource(address, false);
  }
  @Test
  public void addDiscoveryGroup() {
    page.navigateToMessaging();
    page.selectView("Clustering");
    page.switchToDiscovery();

    page.addDiscoveryGroup(NAME, BINDING);

    verifier.verifyResource(address, true);

    cliClient.executeCommand(remove);

    verifier.verifyResource(address, false);
  }
  @Test
  public void removeDiscoveryGroup() {
    cliClient.executeCommand(command);

    page.navigateToMessaging();
    page.selectView("Clustering");
    page.switchToDiscovery();

    verifier.verifyResource(address, true);

    page.selectInTable(NAME, 0);
    page.remove();

    verifier.verifyResource(address, false);
  }