Package com.sun.jini.test.spec.jeri.util

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


        logger.log(Level.FINE,"=================================");
        logger.log(Level.FINE,"test case 5: "
            + "equals is false with different ObjectEndpoint impl");
        logger.log(Level.FINE,"");

        ObjectEndpoint fake = new FakeObjectEndpoint();
        assertion(! boe1.equals(fake));
    }
View Full Code Here


    // a BasicInvocationHandler that throws an exception in its constructor
    class FakeConstructorExceptionBasicInvocationHandler extends
          FakeBasicInvocationHandler
    {
        public FakeConstructorExceptionBasicInvocationHandler() {
            super(new FakeObjectEndpoint(),null);
        }
View Full Code Here

        }
        public FakeConstructorExceptionBasicInvocationHandler(
            FakeConstructorExceptionBasicInvocationHandler bih,
            MethodConstraints mc) throws Exception
        {
            super(new FakeObjectEndpoint(),null);
            throw new Exception();
        }
View Full Code Here

    // inherit javadoc
    public void run() throws Exception {
        FakeBasicILFactory fakeILFactory = new FakeBasicILFactory();
        FakeRemoteImpl ri = new FakeRemoteImpl();
        FakeObjectEndpoint oe = new FakeObjectEndpoint();

        logger.log(Level.FINE,"=================================");
        logger.log(Level.FINE,"test case 1: "
            + "createInvocationHandler(null,null,null)");
        logger.log(Level.FINE,"");
View Full Code Here

        Class[] proxyInterfaces2;
        InvocationConstraint[] client1;
        InvocationConstraint[] client2;
        InvocationConstraint[] server1;
        InvocationConstraint[] server2;
        FakeObjectEndpoint oe1 = new FakeObjectEndpoint();
        FakeObjectEndpoint oe2 = new FakeTrustedObjectEndpoint(false);
        FakeObjectEndpoint oe3 = new FakeTrustedObjectEndpoint(true);
        BasicInvocationHandler handler1;
        BasicInvocationHandler handler2;
        TrustEquivalence proxy1;
        TrustEquivalence proxy2;
View Full Code Here

    }

    // inherit javadoc
    public void run() throws Exception {
        // create test infrastructure
        ObjectEndpoint oe = new FakeObjectEndpoint();
        FakeMethodConstraints fakeMethodConstraints =
            new FakeMethodConstraints(null);
        BasicILFactory factory = new BasicILFactory(
            fakeMethodConstraints,ExportPermission.class);
        FakeServerCapabilities sc = new FakeServerCapabilities(null);
View Full Code Here

            RemoteMethodControl proxy, newProxy;
            FakeMethodConstraints clientConstraints = new FakeMethodConstraints(
                new InvocationConstraint[] {Integrity.YES});
            FakeMethodConstraints serverConstraints = new FakeMethodConstraints(
                new InvocationConstraint[] {Confidentiality.YES});
            FakeObjectEndpoint oe = new FakeObjectEndpoint();

            logger.log(Level.FINE,"=================================");
            logger.log(Level.FINE,"test case 1: setConstraints(null)");
            logger.log(Level.FINE,"");
View Full Code Here

        // setup infrastructure needed by test
        counter = 1;

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

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

        BasicInvocationHandler handler2;
        FakeMethodConstraints clientConstraints =
            new FakeMethodConstraints(null);
        FakeMethodConstraints serverConstraints =
            new FakeMethodConstraints(null);
        FakeObjectEndpoint oe = new FakeObjectEndpoint();

        logger.log(Level.FINE,"=================================");
        logger.log(Level.FINE,"test case 1: null constructor args");
        logger.log(Level.FINE,"");
View Full Code Here

            clientConstraints = (InvocationConstraint[])cases[i][1];
            serverConstraints = (InvocationConstraint[])cases[i][2];

            handler1 = new BasicInvocationHandler(
                new BasicInvocationHandler(
                    new FakeObjectEndpoint(i),
                    new FakeMethodConstraints(serverConstraints)),
                new FakeMethodConstraints(clientConstraints));

            proxy1 = Proxy.newProxyInstance(
                this.getClass().getClassLoader(),
                proxyInterfaces, handler1);

            for (int j = 0; j < cases.length; j++) {
                logger.log(Level.FINE,"=================================");
                logger.log(Level.FINE,"test case " + (counter++) + ": ");
                logger.log(Level.FINE,"");

                proxyInterfaces = (Class[])cases[j][0];
                clientConstraints = (InvocationConstraint[])cases[j][1];
                serverConstraints = (InvocationConstraint[])cases[j][2];

                handler2 = new BasicInvocationHandler(
                    new BasicInvocationHandler(
                        new FakeObjectEndpoint(j),
                        new FakeMethodConstraints(serverConstraints)),
                    new FakeMethodConstraints(clientConstraints));

                proxy2 = Proxy.newProxyInstance(
                    this.getClass().getClassLoader(),
View Full Code Here

TOP

Related Classes of com.sun.jini.test.spec.jeri.util.FakeObjectEndpoint

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.