Package samples.java

Examples of samples.java.ClassInsideJavaPackage


@PrepareForTest(ClassInsideJavaPackage.class)
public class MockClassesInsideJavaPackage {

    @Test
    public void allowsMockingOfClassesInsidePackageContainingJava() {
        ClassInsideJavaPackage mock = createMock(ClassInsideJavaPackage.class);
        expect(mock.mockMe()).andReturn("mocked");

        replayAll();

        assertEquals("mocked", mock.mockMe());

        verifyAll();
    }
View Full Code Here

TOP

Related Classes of samples.java.ClassInsideJavaPackage

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.