Package org.mockito.internal.util

Examples of org.mockito.internal.util.ObjectBox


    @Test
    public void shouldCaptureArguments() {
        //given
        InvocationMarker marker = new InvocationMarker();
        Invocation i = new InvocationBuilder().toInvocation();
        final ObjectBox box = new ObjectBox();
        CapturesArgumensFromInvocation c = new CapturesArgumensFromInvocation() {
            public void captureArgumentsFrom(Invocation i) {
                box.put(i);
            }};
       
        //when
        marker.markVerified(Arrays.asList(i), c);
       
        //then
        assertEquals(i, box.getObject());
    }
View Full Code Here

TOP

Related Classes of org.mockito.internal.util.ObjectBox

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.