Examples of ExceptionListenContext


Examples of com.sun.jini.test.spec.jeri.transport.util.ExceptionListenContext

        //Obtain a server endpoint instance
        ServerEndpoint endpoint = getServerEndpoint();
        try {
            //Verify that an arbitrary exception is propagated
            endpoint.enumerateListenEndpoints(
                new ExceptionListenContext(new ArbitraryException()));
        } catch (ArbitraryException a) {
            try {
                //Verify that an IOException is propagated
                endpoint.enumerateListenEndpoints(
                    new ExceptionListenContext(new IOException()));
            } catch (IOException e) {
                return;
            }
        }
        throw new TestException("An arbitrary exception in the"
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.