Package java.rmi.server

Examples of java.rmi.server.ServerCloneException


    /**
     * @tests java.rmi.server.ServerCloneException#ServerCloneException(String)
     */
    public void test_Constructor_String() {
        ServerCloneException e = new ServerCloneException(errorMessage);
        assertEquals(errorMessage, e.getMessage());
        assertNull(e.detail);
        try {
            e.initCause(e);
            fail("No expected IllegalArgumentException");
        } catch (IllegalArgumentException exception) {
            // expected
        }
    }
View Full Code Here


    /**
     * @tests java.rmi.server.ServerCloneException#ServerCloneException(String,Exception)
     */
    public void test_Constructor_String_Exception() {
        ServerCloneException e = new ServerCloneException(errorMessage, cause);
        assertEquals(cause.getMessage(), e.getCause().getMessage());
        assertEquals(cause.getMessage(), e.detail.getMessage());
    }
View Full Code Here

    /**
     * @tests serialization/deserialization.
     */
    public void testSerializationSelf() throws Exception {

        SerializationTest.verifySelf(new ServerCloneException(errorMessage, cause), comparator);
    }
View Full Code Here

    /**
     * @tests serialization/deserialization compatibility with RI.
     */
    public void testSerializationCompatibility() throws Exception {

        SerializationTest.verifyGolden(this, new ServerCloneException(errorMessage, cause), comparator);
    }
View Full Code Here

        test(new RemoteException(foo), foo, null);
        test(new RemoteException(foo, t), fooMsg, t);
        test(new ActivationException(), null, null);
        test(new ActivationException(foo), foo, null);
        test(new ActivationException(foo, t), fooMsg, t);
        test(new ServerCloneException(foo), foo, null);
        test(new ServerCloneException(foo, t), fooMsg, t);
    }
View Full Code Here

     */
    @Override
    protected void setUp() {
        errorMessage = "Clone Error";
        causeMessage = "Caused Exception";
        cause = new ServerCloneException(causeMessage);
    }
View Full Code Here

    /**
     * @tests java.rmi.server.ServerCloneException#ServerCloneException(String)
     */
    public void test_Constructor_String() {
        ServerCloneException e = new ServerCloneException(errorMessage);
        assertEquals(errorMessage, e.getMessage());
        assertNull(e.detail);
        try {
            e.initCause(e);
            fail("No expected IllegalStateException");
        } catch (IllegalStateException exception) {
            // expected
        }
    }
View Full Code Here

    /**
     * @tests java.rmi.server.ServerCloneException#ServerCloneException(String,Exception)
     */
    public void test_Constructor_String_Exception() {
        ServerCloneException e = new ServerCloneException(errorMessage, cause);
        assertEquals(cause.getMessage(), e.getCause().getMessage());
        assertEquals(cause.getMessage(), e.detail.getMessage());
    }
View Full Code Here

    /**
     * @tests serialization/deserialization.
     */
    public void testSerializationSelf() throws Exception {

        SerializationTest.verifySelf(new ServerCloneException(errorMessage, cause), comparator);
    }
View Full Code Here

    /**
     * @tests serialization/deserialization compatibility with RI.
     */
    public void testSerializationCompatibility() throws Exception {

        SerializationTest.verifyGolden(this, new ServerCloneException(errorMessage, cause), comparator);
    }
View Full Code Here

TOP

Related Classes of java.rmi.server.ServerCloneException

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.