Examples of FakeBasicInvocationDispatcher


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

    public void setup(QAConfig sysConfig) throws Exception {
        // setup infrastructure needed by test
        counter = 1;
        context = new ArrayList();

        dispatcher = new FakeBasicInvocationDispatcher(
                methodCollection(new Class[] {FakeRemoteInterface.class}),
                new FakeServerCapabilities(null),           //serverCaps
                null,                                       //serverConstraints
                null,                                       //permClass
                null);                                      //classLoader
View Full Code Here

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

        ArrayList methods = new ArrayList();
        methods.add(fakeMethod);

        methodHash = Util.computeMethodHash(fakeMethod);

        dispatcher = new FakeBasicInvocationDispatcher(
                methods,                          //methods collection
                new FakeServerCapabilities(null), //serverCaps
                null,                             //serverConstraints
                null,                             //permClass
                null);                            //classLoader
View Full Code Here

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

        };
    }

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

            logger.log(Level.FINE,"=================================");
            logger.log(Level.FINE,"test case " + (counter++)
                + ": methods:" + methods
                + ", serverCaps:" + serverCaps
                + ", serverConstraints:" + serverConstraints
                + ", permClass:" + permClass
                + ", classLoader:" + classLoader
                + ", expectedExc:" + expectedExc);
            logger.log(Level.FINE,"");

            try {
                dispatcher = new FakeBasicInvocationDispatcher(methods,
                    serverCaps,serverConstraints,permClass,classLoader);
                assertion(expectedExc == null,
                    "Expected " + expectedExc + " was not thrown");
                assertion(classLoader == dispatcher.getClassLoader0());
            } catch (NullPointerException npe) {
                assertion(
                    expectedExc.getClass() == npe.getClass(),
                    "Expected: " + expectedExc + "   Received: " + npe);
            } catch (IllegalArgumentException iae) {
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.