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

Examples of com.sun.jini.test.spec.io.util.FakeObject


    public void setup(QAConfig sysConfig) throws Exception {
    }

    // inherit javadoc
    public void run() throws Exception {
        FakeObject fo = new FakeObject(new AssertionError());
        MarshalledInstance mi1;
        MarshalledInstance mi2;

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


            + "MarshalledInstance(new FakeObject())");
        logger.log(Level.FINE,"");

        try {
            instance = new MarshalledInstance(
                new FakeObject(new AssertionError()));
        } catch (Throwable caught) {
            assertion(false,caught.toString());
        }

        logger.log(Level.FINE,"=================================");
        logger.log(Level.FINE,"test case 5: "
            + "MarshalledInstance(new FakeObject(),null)");
        logger.log(Level.FINE,"");

        try {
            instance = new MarshalledInstance(
                new FakeObject(new AssertionError()),null);
            assertion(false);
        } catch (NullPointerException ignore) {
        }

        logger.log(Level.FINE,"=================================");
        logger.log(Level.FINE,"test case 6: "
            + "MarshalledInstance(new Object(),context)");
        logger.log(Level.FINE,"");

        try {
            instance = new MarshalledInstance(
                new Object(),new ArrayList());
            assertion(false);
        } catch (IOException ignore) {
        }

        logger.log(Level.FINE,"=================================");
        logger.log(Level.FINE,"test case 7: "
            + "MarshalledInstance(new FakeObject(),context)");
        logger.log(Level.FINE,"");

        try {
            instance = new MarshalledInstance(
                new FakeObject(new AssertionError()),new ArrayList());
        } catch (Throwable caught) {
            assertion(false,caught.toString());
        }
    }
View Full Code Here

            Throwable readObjectException = cases[i];
            logger.log(Level.FINE,"test case " + (counter++) + ": "
                + "readObjectException:" + readObjectException);
            logger.log(Level.FINE,"");

            FakeObject fo = new FakeObject(readObjectException);
            mi = new MarshalledInstance(fo);
            try {
                mi.get(true);
                assertion(false);
            } catch (Throwable caught) {
View Full Code Here

TOP

Related Classes of com.sun.jini.test.spec.io.util.FakeObject

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.