Package ch.powerunit.report

Examples of ch.powerunit.report.Failure


    tc.setTime((end - tc.getTime()) / 1000);
    ts.setTime(ts.getTime() + tc.getTime());
    error = true;
    ts.setFailures(ts.getFailures() + 1);

    Failure f = new Failure();
    tc.getFailure().add(f);
    f.setType(cause.getClass().getCanonicalName());
    f.setMessage(cause.getMessage());
    StringBuffer stack = new StringBuffer(cause.getMessage()).append('\n');
    for (StackTraceElement ste : cause.getStackTrace()) {
      stack.append(ste.toString()).append('\n');
    }
    f.setContent(stack.toString());
  }
View Full Code Here


        tc.setTime((end - tc.getTime()) / 1000);
        ts.setTime(ts.getTime() + tc.getTime());
        error = true;
        ts.setFailures(ts.getFailures() + 1);

        Failure f = new Failure();
        tc.getFailure().add(f);
        f.setType(cause.getClass().getCanonicalName());
        f.setMessage(cause.getMessage());
        StringBuilder stack = new StringBuilder(cause.getMessage())
                .append('\n');
        for (StackTraceElement ste : cause.getStackTrace()) {
            stack.append(ste.toString()).append('\n');
        }
        f.setContent(stack.toString());
        printf("Failure of test %1$s because of %2$s%n",
                context.getFullTestName(), cause.getMessage());
        resumedFailure.append("\t").append(context.getLocalTestName())
                .append(" of ").append(context.getSetName())
                .append(" caused by ").append(cause.getMessage()).append("\n");
View Full Code Here

TOP

Related Classes of ch.powerunit.report.Failure

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.