Search in sources :

Example 1 with PrintListener

use of com.navercorp.pinpoint.test.plugin.shared.PrintListener in project pinpoint by pinpoint-apm.

the class ForkedPinpointPluginTest method runTests.

private static Result runTests(Class<?> testClass, String testId) throws InitializationError {
    JUnitCore junit = new JUnitCore();
    junit.addListener(new PrintListener());
    Runner runner = new ForkedPinpointPluginTestRunner(testClass, testId);
    Result result = junit.run(runner);
    return result;
}
Also used : Runner(org.junit.runner.Runner) PrintListener(com.navercorp.pinpoint.test.plugin.shared.PrintListener) JUnitCore(org.junit.runner.JUnitCore) Result(org.junit.runner.Result)

Example 2 with PrintListener

use of com.navercorp.pinpoint.test.plugin.shared.PrintListener in project pinpoint by naver.

the class ForkedPinpointPluginTest method runTests.

private static Result runTests(Class<?> testClass, String testId) throws InitializationError {
    JUnitCore junit = new JUnitCore();
    junit.addListener(new PrintListener());
    Runner runner = new ForkedPinpointPluginTestRunner(testClass, testId);
    Result result = junit.run(runner);
    return result;
}
Also used : Runner(org.junit.runner.Runner) PrintListener(com.navercorp.pinpoint.test.plugin.shared.PrintListener) JUnitCore(org.junit.runner.JUnitCore) Result(org.junit.runner.Result)

Aggregations

PrintListener (com.navercorp.pinpoint.test.plugin.shared.PrintListener)2 JUnitCore (org.junit.runner.JUnitCore)2 Result (org.junit.runner.Result)2 Runner (org.junit.runner.Runner)2