Package org.jboss.jopr.jsfunit.util

Examples of org.jboss.jopr.jsfunit.util.DescribedCondition


        log.info( ObjectUtils.toString(jsTreeItem) );
      }


      // Own active condition waiting
      new ActiveConditionChecker( new DescribedCondition("Tree.Item JS object is initialized.") {
        final EmbJoprTestToolkit selfEjtt = ejtt;
        public boolean isTrue() throws Exception {
          Object obj = selfEjtt.getJavaScriptObject("Tree.Item");
          if( null == obj ) return false;
          //if (  org.mozilla.javascript.NOT_FOUND ) return false;
View Full Code Here


      new FileWriter(shFilePath, false).append("echo 'Test script.'").close();


      // Wait for the script to appear.
      try {
        new ActiveConditionChecker(new DescribedCondition("Script "+SCRIPT_FILE_NAME+" appears in Scripts listing") {
          int count = 0;
          public boolean isTrue() throws Exception {
            ejtt.navTree.getNodeByLabel(NAV_SCRIPTS).click();
            return null == ejtt.tabMenu.getTabContentBox().getFirstTable().findFirstRowContainingLink(SCRIPT_FILE_NAME);
            // TODO: This will check all pages.
View Full Code Here

    deployRar( rarFilePath );

    try {

      // Wait until the RAR appears...
      new ActiveConditionChecker(new DescribedCondition("RAR appears in Summary tab list") {
        public boolean isTrue() throws Exception {
          // Refresh, then check.
          ejtt.getNavTree().getNodeByLabel(NAV_RAR).click();
          ContentTableRow rarRow = ejtt.getDefaultContentTable().findFirstRowContainingLink(BASIC_RAR);
          return null != rarRow;
View Full Code Here

    try {

      // Wait until the WAR appears...
      // Should be present when the page is reloaded.
      // TODO: Replace with waitUntil~()
      new ActiveConditionChecker(new DescribedCondition("WAR appears in Summary tab list") {
        public boolean isTrue() throws Exception {
          // Refresh, then check.
          ejtt.getNavTree().getNodeByLabel(NAV_WAR).click();
          ContentTableRow appRow = ejtt.getDefaultContentTable().findFirstRowContainingLink(DEPLOYABLE_NAME);
          return null != appRow;
View Full Code Here

    final String warFileName = warFile.getName();

    try {

      // Try it 5x in 5 second interval.
      new ActiveConditionChecker( new DescribedCondition("WAR '"+warFileName+"' succesfuly deployed") {
        public boolean isTrue() throws Exception {
          deployWAR(warFilePath);

          // Check whether deployment ended with success message.
          /* Now broken, EmbJopr reports an error even when deployed successfully:
View Full Code Here

TOP

Related Classes of org.jboss.jopr.jsfunit.util.DescribedCondition

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.