Examples of Warning


Examples of com.jitcaforwin.trackinfoanalyzer.log.status.Warning

    assertTrue(status.isUnknown());
   
    assertEquals(LogStatus.UNKOWN, status.toChar());
   
    assertTrue(status.hasToBeUpdated(new Ok()));
    assertTrue(status.hasToBeUpdated(new Warning()));
    assertTrue(status.hasToBeUpdated(new Error()));
    assertFalse(status.hasToBeUpdated(new Unkown()));
  }
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.Warning

        else {
            this.appendResult("     No warnings detected\n");
        }

        java.util.Iterator warningList = warnings.iterator();
        Warning warning;
        while (warningList.hasNext()) {
            warning = (Warning) warningList.next();
            this.appendResult("      - " + WGUtils.strReplace(warning.getConsoleText(), "-->", "-- >", true) + "\n");
        }
       
        this.appendResult("\n     ##### WebTML Warnings ##### -->");
       
    }
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.Warning

    else {
      this.appendResult("No warnings detected</td></tr>");
    }

    java.util.Iterator warningList = warnings.iterator();
    Warning warning;
    while (warningList.hasNext()) {
      warning = (Warning) warningList.next();
      this.appendResult("<tr>");
      this.appendResult("<td align=\"center\"><img src=\"" + this.getWGPPath() + "/static/images/warning_" + (warning.isSevere() ? "severe" : "info") + ".jpg\"/></td>");
      this.appendResult("<td>" + warning.getResource() + "</td>");
      this.appendResult("<td>" + warning.getSourceLine()+ "</td>");
      this.appendResult("<td>" + warning.getTagType() + "</td>");
      this.appendResult("<td>" + warning.getTagId() + "</td>");
        this.appendResult("<td>" + warning.getDatabase() + "</td>");
      this.appendResult("<td>" + warning.getContextWGKey() + "</td>");
      this.appendResult("<td>" + WGUtils.encodeHTML(warning.getMessage()) + "</td>");
      this.appendResult("</tr>");
    }
   
    this.appendResult("</table>");
    }
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.Warning

        if (warnings == null) {
            warnings = new ArrayList();
            pageContext.setAttribute(Base.class.getName() + ":Warnings", warnings, PageContext.REQUEST_SCOPE);
        }
       
        Warning warning = new Warning(this, tmlContext, msg, severe);
        warnings.add(warning);

        if (core.getWgaConfiguration().isWarningsOutputOnConsole()) {
            core.getLog().warn(warning.getConsoleText());
        }

        if (severe == true) {
             cancelTag = true;
        }
View Full Code Here

Examples of fr.tm.elibel.smartqvt.message.Warning

        if (result == null) result = caseMessage(error);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case MessagePackage.WARNING: {
        Warning warning = (Warning)theEObject;
        Object result = caseWarning(warning);
        if (result == null) result = caseMessage(warning);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
View Full Code Here

Examples of jp.vmi.selenium.selenese.result.Warning

    @Override
    protected Result executeImpl(Context context, String... curArgs) {
        String speed = curArgs[ARG_SPEED];
        if (StringUtils.isBlank(speed))
            return new Warning("the argument of setSpeed is ignored: empty.");
        try {
            context.setSpeed(Long.parseLong(speed));
            return SUCCESS;
        } catch (NumberFormatException e) {
            return new Warning("the argument of setSpeed is ignored: invalid number format: " + speed);
        }
    }
View Full Code Here

Examples of jp.vmi.selenium.selenese.result.Warning

    protected Result executeImpl(Context context, String... curArgs) {
        if (!(context instanceof ScreenshotHandler))
            return new Success("captureEntirePageScreenshot is not supported.");
        String filename = curArgs[ARG_FILENAME];
        if (StringUtils.isBlank(filename))
            return new Warning("captureEntirePageScreenshot is ignored: empty filename.");
        ScreenshotHandler handler = (ScreenshotHandler) context;
        if (handler.isIgnoredScreenshotCommand())
            return new Success("captureEntirePageScreenshot is ignored.");
        try {
            addScreenshot(handler.takeScreenshot(filename), "cmd");
            return SUCCESS;
        } catch (UnsupportedOperationException e) {
            return new Warning(e.getMessage());
        }
    }
View Full Code Here

Examples of jp.vmi.selenium.selenese.result.Warning

    @Override
    protected Result executeImpl(Context context, String... curArgs) {
        String timeout = curArgs[ARG_TIMEOUT];
        if (StringUtils.isBlank(timeout))
            return new Warning("the argument of setTimeout is ignored: empty.");
        try {
            context.setTimeout(Integer.parseInt(timeout));
            return SUCCESS;
        } catch (NumberFormatException e) {
            return new Warning("the argument of setTimeout is ignored: invalid number format: " + timeout);
        }
    }
View Full Code Here

Examples of jp.vmi.selenium.selenese.result.Warning

        }
        switch (type) {
        case ASSERT:
            return new Failure(message);
        case VERIFY:
            return found ? new Warning(message) : new Failure(message);
        default: // == WAIT_FOR
            return new Warning(String.format("Timed out after %dms (%s)", timeout, message));
        }
    }
View Full Code Here

Examples of jp.vmi.selenium.selenese.result.Warning

    @Override
    protected Result executeImpl(Context context, String... curArgs) {
        String pauseMSec = curArgs[ARG_PAUSE_MSEC];
        if (StringUtils.isBlank(pauseMSec))
            return new Warning("pause is ignored: empty time.");
        try {
            Thread.sleep(Long.parseLong(pauseMSec));
            return SUCCESS;
        } catch (NumberFormatException e) {
            return new Warning("pause is ignored: invalid time: " + pauseMSec);
        } catch (InterruptedException e) {
            return new Failure(e);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.