APISonar


org.netbeans.lib.profiler.tests.jfluid.CommonProfilerTestCase.log

> org > netbeans > lib > profiler > tests > jfluid > CommonProfilerTestCase > log
org APIs netbeans APIs lib APIs profiler APIs tests APIs jfluid APIs CommonProfilerTestCase APIs log APIs

Example 1
CommonProfilerTestCase test;

    public void displayErrorWithDetailsAndWaitForConfirm(String shortMsg, String detailsMsg) {
        test.getLog().flush();
        test.log("error");
        test.log("mesg=" + shortMsg);
        test.log("details=" + detailsMsg);
        System.err.println("Error: " + shortMsg + "; Details: " + detailsMsg);
        new Exception().printStackTrace();
        test.setStatus(CommonProfilerTestCase.STATUS_ERROR);
    }
Example 2
CommonProfilerTestCase test;

    public void handleShutdown() {
        test.log("Handler shutdown");
        test.setStatus(CommonProfilerTestCase.STATUS_APP_FINISHED);
        test.waitForStatus(CommonProfilerTestCase.STATUS_MEASURED);
        test.log("Handled shutdown");
    }