Java 类java.rmi.server.SkeletonMismatchException 实例源码

项目:cn1    文件:SkeletonMismatchExceptionTest.java   
/**
 * @tests java.rmi.server.SkeletonMismatchException#SkeletonMismatchException(String)
 */
public void test_Constructor_String() {
    SkeletonMismatchException e = new SkeletonMismatchException(errorMessage);
    assertTrue(e instanceof java.rmi.RemoteException);
    assertTrue(e instanceof RemoteException);
    assertEquals(errorMessage, e.getMessage());
    assertNull(e.detail);
}
项目:cn1    文件:SkeletonMismatchExceptionTest.java   
public void assertDeserialized(Serializable initial,
        Serializable deserialized) {

    SerializationTest.THROWABLE_COMPARATOR.assertDeserialized(initial, deserialized);

    SkeletonMismatchException initEx = (SkeletonMismatchException) initial;
    SkeletonMismatchException desrEx = (SkeletonMismatchException) deserialized;
    assertEquals(initEx.getMessage(), desrEx.getMessage());
    assertEquals(initEx.detail, desrEx.detail);
}
项目:freeVM    文件:SkeletonMismatchExceptionTest.java   
/**
 * @tests java.rmi.server.SkeletonMismatchException#SkeletonMismatchException(String)
 */
public void test_Constructor_String() {
    SkeletonMismatchException e = new SkeletonMismatchException(errorMessage);
    assertTrue(e instanceof java.rmi.RemoteException);
    assertTrue(e instanceof RemoteException);
    assertEquals(errorMessage, e.getMessage());
    assertNull(e.detail);
}
项目:freeVM    文件:SkeletonMismatchExceptionTest.java   
public void assertDeserialized(Serializable initial,
        Serializable deserialized) {

    SerializationTest.THROWABLE_COMPARATOR.assertDeserialized(initial, deserialized);

    SkeletonMismatchException initEx = (SkeletonMismatchException) initial;
    SkeletonMismatchException desrEx = (SkeletonMismatchException) deserialized;
    assertEquals(initEx.getMessage(), desrEx.getMessage());
    assertEquals(initEx.detail, desrEx.detail);
}
项目:cn1    文件:SkeletonMismatchExceptionTest.java   
/**
 * @tests serialization/deserialization.
 */
public void testSerializationSelf() throws Exception {

    SerializationTest.verifySelf(new SkeletonMismatchException(errorMessage), comparator);
}
项目:cn1    文件:SkeletonMismatchExceptionTest.java   
/**
 * @tests serialization/deserialization compatibility with RI.
 */
public void testSerializationCompatibility() throws Exception {

    SerializationTest.verifyGolden(this, new SkeletonMismatchException(errorMessage), comparator);
}
项目:freeVM    文件:SkeletonMismatchExceptionTest.java   
/**
 * @tests serialization/deserialization.
 */
public void testSerializationSelf() throws Exception {

    SerializationTest.verifySelf(new SkeletonMismatchException(errorMessage), comparator);
}
项目:freeVM    文件:SkeletonMismatchExceptionTest.java   
/**
 * @tests serialization/deserialization compatibility with RI.
 */
public void testSerializationCompatibility() throws Exception {

    SerializationTest.verifyGolden(this, new SkeletonMismatchException(errorMessage), comparator);
}