Package fi.jumi.core.util

Examples of fi.jumi.core.util.MethodCallSpy


        verify(listener, times(1)).onTestFound(TestFile.fromClass(CLASS_1), TestId.ROOT, "test name");
    }

    @Test
    public void notifies_when_all_test_classes_are_finished() {
        MethodCallSpy spy = new MethodCallSpy();
        SuiteListener listener = spy.createProxyTo(SuiteListener.class);

        run(listener, new FakeTestClassDriver(), CLASS_1, CLASS_2);

        assertThat("should happen once", spy.countCallsTo("onSuiteFinished"), is(1));
        assertThat("should happen last", spy.getLastCall(), is("onSuiteFinished"));
    }
View Full Code Here

TOP

Related Classes of fi.jumi.core.util.MethodCallSpy

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.