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

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


     * @param interfaces array of interface, one must be Remote
     * @param oe the endpoint with which to create the BasicInvocationHandler
     */
    private Remote createImpl(Class[] interfaces, ObjectEndpoint oe) {
        BasicInvocationHandler handler =
            new BasicInvocationHandler(oe,new FakeMethodConstraints(null));
        return (Remote) Proxy.newProxyInstance(
            this.getClass().getClassLoader(),
            interfaces,
            handler);
    }
View Full Code Here


    // inherit javadoc
    public void run() throws Exception {
        try {
            BasicInvocationHandler handler;
            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)");
View Full Code Here

        FakeServerCapabilities caps2 = new FakeServerCapabilities(
            new InvocationConstraint[] {Integrity.YES,Confidentiality.YES});
        FakeServerCapabilities caps3 = new FakeServerCapabilities(
            new InvocationConstraint[] {Integrity.NO,Confidentiality.NO});

        FakeMethodConstraints mc = new FakeMethodConstraints(null);
        FakeMethodConstraints mc1 = new FakeMethodConstraints(
            new InvocationConstraint[] {Integrity.NO});

        Class normal    = ExportPermission.class;
        Class abstrct   = Permission.class;
        Class file      = File.class;
View Full Code Here

        int counter = 1;
        for (int i = 0; i < cases.length; i++) {
            ArrayList methods = (ArrayList)cases[i][0];
            FakeServerCapabilities serverCaps =
                (FakeServerCapabilities)cases[i][1];
            FakeMethodConstraints serverConstraints =
                (FakeMethodConstraints)cases[i][2];
            Class permClass = (Class)cases[i][3];
            ClassLoader classLoader = (ClassLoader)cases[i][4];
            Exception expectedExc = (Exception)cases[i][5];
View Full Code Here

    // inherit javadoc
    public void run() throws Exception {
        BasicInvocationHandler handler;
        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

            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(),
                    proxyInterfaces, handler2);
View Full Code Here

    public void setup(QAConfig sysConfig) throws Exception {
    }

    // 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,"=================================");
View Full Code Here

TOP

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

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.