Package org.jboss.jopr.jsfunit.util.EmbJoprTestToolkit

Examples of org.jboss.jopr.jsfunit.util.EmbJoprTestToolkit.NavTreeNode


   * Test the navigation to JBoss Cache nodes.
   */
  public void testJBossCacheParentNode() throws HtmlElementNotFoundException, IOException, EmbJoprTestException {
    if( isJBossConfigWithoutCache() ) return;

    NavTreeNode cachesNode = ejtt.navTree.getNodeByLabel(NAV_JBCACHES);
    assertTrue( "JBoss Caches node has no children.", cachesNode.hasChildren() );
    cachesNode.click();
   
    final String HA_PARTITION = "ha-partition";
    assertTrue("JBoss Caches should list '"+HA_PARTITION+"'", client.getPageAsText().contains(HA_PARTITION) );

    ContentTable table = ejtt.getTabMenu().getTabContentBox().getFirstTable();
View Full Code Here


   * Test the navigation to JBoss Cache nodes.
   */
  public void testJBossCacheNavigation() throws HtmlElementNotFoundException, IOException, EmbJoprTestException {
    if( isJBossConfigWithoutCache() ) return;

    NavTreeNode haparNode = ejtt.getNavTree().getNodeByLabel(JBCACHE_HA_PARTITION);

    // All expected subnodes:
    String[] subnodesNames = new String[]{
      SUBNODE_CACHE,
      SUBNODE_INTERCEPTOR,
      SUBNODE_DATA_CONTAINER,
      SUBNODE_RPC_MANAGER,
      SUBNODE_REGION_MANAGER,
      SUBNODE_TRANSACTION_TABLE
    };


    // Check whether all expected child nodes are present.
    List<String> names = new ArrayList();
    CollectionUtils.addAll(names, subnodesNames);

    // Remove the names which we find.
    haparNode = ejtt.navTree.getNodeByLabel(JBCACHE_HA_PARTITION);
    List<NavTreeNode> children = haparNode.getChildren( /*new NodeFinder() {
      public HtmlTable getNodeElem(EmbJoprTestToolkit ejtt) throws HtmlElementNotFoundException {
        return (HtmlTable) ejtt.navTree.getNodeByLabel(JBCACHE_HA_PARTITION).getElement();
      }
    }*/);

 
View Full Code Here

      String expectedMessage = DEPLOYABLE_NAME + " created successfully";
      checkClientAndServerMessages(expectedMessage, expectedMessage, false);

      // Go to the embedded WARs node.
      NavTreeNode embWarNode = ejtt.navTree.getNodeByLabel(APP_TYPE.getNavTreeLabel());
      embWarNode.getLabelLink().click();

      // Check that the embedded WAR is listed.
      ContentTableRow embWarLink = ejtt.tabMenu.getTabContentBox()
              .findLinkRowInDataTableUsingPagination(EAR_WITH_WAR_EMB__WAR_NAME);
      if( null == embWarLink )
View Full Code Here

    protected void navigateToPage(String resourceCategory,
                                  String resourceSubCategory,
                                  String resourceName,
                                  String tabName) throws Exception {
        //refreshTreeNode(resourceCategory);       
      NavTreeNode resourceSubCategoryNode = ejtt.getNavTree().getNodeByLabel(resourceSubCategory);
      if(!resourceSubCategoryNode.isExpanded()) {
        expandNavTreeArrow(resourceSubCategory);
      }
     
        clickNavTreeLink(resourceName);
     
View Full Code Here

TOP

Related Classes of org.jboss.jopr.jsfunit.util.EmbJoprTestToolkit.NavTreeNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.