Examples of NamingEvent


Examples of javax.naming.event.NamingEvent

        }
    }

    public void testDispatch_RENAMED_BadListenerType() {
        log.setMethod("testDispatch_RENAMED_BadListenerType()");
        NamingEvent event;

        event = new NamingEvent(eventctx, NamingEvent.OBJECT_RENAMED, binding1, binding2,
                "anything");

        try {
            event.dispatch(new TestEmptyListener(event));
            fail("should throw ClassCastException");
        } catch (ClassCastException e) {
        }
    }
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.