Package fi.jumi.core.drivers

Examples of fi.jumi.core.drivers.DriverRunner


    public void if_test_class_annotated_with_RunInDriverThread_then_does_not_use_the_Executor() {
        RunListener runListener = mock(RunListener.class);
        Executor executor = mock(Executor.class);
        Class<AnnotatedWithRunInDriverThreadTest> testClass = AnnotatedWithRunInDriverThreadTest.class;
        SuiteNotifier notifier = new ThreadBoundSuiteNotifier(ActorRef.wrap(runListener), new RunIdSequence(), new OutputCapturer());
        DriverRunner driverRunner = new DriverRunner(new SimpleUnit(), testClass, notifier, executor);

        driverRunner.run();

        verifyZeroInteractions(executor);
        // should anyways run the tests
        verify(runListener).onTestStarted(new RunId(1), TestId.ROOT);
        verify(runListener).onTestStarted(new RunId(1), TestId.of(0));
View Full Code Here

TOP

Related Classes of fi.jumi.core.drivers.DriverRunner

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.