/** * @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); }
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); }
/** * @tests serialization/deserialization. */ public void testSerializationSelf() throws Exception { SerializationTest.verifySelf(new SkeletonMismatchException(errorMessage), comparator); }
/** * @tests serialization/deserialization compatibility with RI. */ public void testSerializationCompatibility() throws Exception { SerializationTest.verifyGolden(this, new SkeletonMismatchException(errorMessage), comparator); }