Package org.apache.cayenne.reflect

Examples of org.apache.cayenne.reflect.CallbackOnListener


public class CallbackOnListenerTest extends TestCase {

    public void testPublicCallbackMethod() {

        MockCallingBackListener listener = new MockCallingBackListener();
        CallbackOnListener callback = new CallbackOnListener(
                listener,
                "publicCallback",
                Object.class);

        MockCallingBackEntity e = new MockCallingBackEntity();
        callback.performCallback(e);

        // entity itself should not be called back...
        assertFalse(e.publicCallbackInvoked);
        assertFalse(e.protectedCallbackInvoked);
        assertFalse(e.privateCallbackInvoked);
View Full Code Here

TOP

Related Classes of org.apache.cayenne.reflect.CallbackOnListener

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.