Examples of FakeBasicInvocationHandler


Examples of com.sun.jini.test.spec.jeri.util.FakeBasicInvocationHandler

            handler.createMarshalInputStream(
                new Object(),method,request,true,c);
            assertion(false);
        } catch (Throwable ignore) {}
        try {
            FakeBasicInvocationHandler handler2 =
                new FakeBasicInvocationHandler(
                    objectEndpoint,      // objectEndpoint
                    null);               // serverConstraints
            handler2.createMarshalInputStream(impl,method,request,true,c);
            assertion(false);
        } catch (Throwable ignore) {}

        logger.log(Level.FINE,"=================================");
        logger.log(Level.FINE,"test case 2: createMarshalOutputStream");
View Full Code Here

Examples of com.sun.jini.test.spec.jeri.util.FakeBasicInvocationHandler

        counter = 1;

        request = new FakeOutboundRequest();
        iterator = new FakeOutboundRequestIterator(request);
        objectEndpoint = new FakeObjectEndpoint(iterator);
        handler = new FakeBasicInvocationHandler(
            objectEndpoint,      // objectEndpoint
            null);               // serverConstraints

        impl = (FakeInterface) Proxy.newProxyInstance(
            FakeInterface.class.getClassLoader(),
View Full Code Here

Examples of com.sun.jini.test.spec.jeri.util.FakeBasicInvocationHandler

    // inherit javadoc
    public void run() throws Exception {
        FakeMethodConstraints clientConstraints =
            new FakeMethodConstraints(null);
        FakeBasicInvocationHandler newHandler;
        FakeBasicInvocationHandler handler =
            new FakeBasicInvocationHandler(new FakeObjectEndpoint(),null);

        logger.log(Level.FINE,"=================================");
        logger.log(Level.FINE,"test case 1: setClientConstraints(null)");
        logger.log(Level.FINE,"");

        newHandler =
            (FakeBasicInvocationHandler)handler.setClientConstraints(null);
        assertion(newHandler.getClientConstraints() == null);
        assertion(newHandler.getServerConstraints() == null);

        logger.log(Level.FINE,"=================================");
        logger.log(Level.FINE,"test case 2: "
            + "setClientConstraints(MethodConstraints)");
        logger.log(Level.FINE,"");

        newHandler =
            (FakeBasicInvocationHandler)handler.setClientConstraints(
                clientConstraints);
        assertion(newHandler.getClientConstraints() == clientConstraints);
        assertion(newHandler.getServerConstraints() == null);

        logger.log(Level.FINE,"=================================");
        logger.log(Level.FINE,"test case 3: "
            + "setClientConstraints(MethodConstraints) throws exception");
        logger.log(Level.FINE,"");

        try {
            handler = new FakeBadConstructorBasicInvocationHandler();
            handler.setClientConstraints(clientConstraints);
            assertion(false);
        } catch (UndeclaredThrowableException ignore) {
        }

        try {
            handler = new FakeConstructorExceptionBasicInvocationHandler();
            handler.setClientConstraints(clientConstraints);
            assertion(false);
        } catch (UndeclaredThrowableException ignore) {
        }
    }
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.