Package samples.privateandfinal

Examples of samples.privateandfinal.PrivateFinalOverload.say()


    @Test
    public void captorAnnotationWorksOnPrivateOverriddenMethods() throws Exception {
        final String expected = "testing";
        PrivateFinalOverload demo = spy(new PrivateFinalOverload());
        demo.say(expected);

        verifyPrivate(demo).invoke(method(PrivateFinalOverload.class, "say", String.class, String.class)).withArguments(anyString(), captor.capture());
        assertEquals(expected, captor.getValue());
    }
}
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.