Examples of enableDebugMode()


Examples of fi.jumi.launcher.JumiBootstrap.enableDebugMode()

            JumiBootstrap bootstrap = new JumiBootstrap();
            bootstrap.suite.setTestClasses(OnePassingTest.class);
            bootstrap.daemon.setIdleTimeout(0); // we want the daemon process to exit quickly
            bootstrap.setTextUiOutput(new NullWriter());
            bootstrap.enableDebugMode(); // <-- the thing we are testing
            bootstrap.runSuite();

            Thread.sleep(50); // wait for the daemon process to exit, and our printer thread to notice it
            assertThat("this test has a problem; daemon printed nothing", printed.size(), is(not(0)));
            verify(spiedErr, never()).close(); // <-- the thing we are testing
View Full Code Here

Examples of fi.jumi.launcher.JumiBootstrap.enableDebugMode()

    public static void main(String[] args) throws Exception {
        JumiBootstrap bootstrap = new JumiBootstrap();
        bootstrap.suite
                .addJvmOptions("-ea")
                .setIncludedTestsPattern("glob:com/example/**Test.class"); // uses Java 7 glob patterns
        bootstrap
                .enableDebugMode() // shows Jumi's internal messaging; can be useful for testing framework developers
                .setPassingTestsVisible(true) // shows full output from all tests, instead of just failing tests
                .runSuite();
    }
}
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.