APISonar


org.netbeans.junit.NbTestCase.log

> org > netbeans > junit > NbTestCase > log
org APIs netbeans APIs junit APIs NbTestCase APIs log APIs

Example 1
public static void logProperties(NbTestCase testCase) {
        testCase.log("");
        testCase.log("-----------------------------------------------------------");
        testCase.log("|  SETUP PROPERTIES:                                      |");
        testCase.log("-----------------------------------------------------------");
        testCase.log(EXCLUDE_PLUGINS + "=" + System.getProperty(EXCLUDE_PLUGINS));
        testCase.log(INCLUDE_PLUGINS + "=" + System.getProperty(INCLUDE_PLUGINS));
        testCase.log(DISABLE_DEFAULT_UC + "=" + System.getProperty(DISABLE_DEFAULT_UC));
        testCase.log(ADDITIONAL_UC + "=" + System.getProperty(ADDITIONAL_UC));
        testCase.log("-----------------------------------------------------------");
    }
Example 2
public static void makeIDEScreenshot(NbTestCase testCase) {
        try{
            testCase.getWorkDir();
            org.netbeans.jemmy.util.PNGEncoder.captureScreen(testCase.getWorkDirPath()+System.getProperty("file.separator")+"IDEscreenshot.png");
        }catch(Exception ioexc){
            testCase.log("Impossible make IDE screenshot!!! \n" + ioexc.toString());
        }
    }