예제 #1
0
 /** Validate that a SerialJavaObject that is serialized & deserialized is equal to itself */
 @Test
 public void test04() throws Exception {
   SerialJavaObject sjo = new SerialJavaObject("Hello");
   SerialJavaObject sjo2 = serializeDeserializeObject(sjo);
   assertTrue(sjo.equals(sjo2));
 }
예제 #2
0
 /*
  * clone() a SerialJavaObject and check that it is equal to the
  * object it was cloned from
  */
 @Test
 public void test03() throws Exception {
   SerialJavaObject sjo = new SerialJavaObject("Hello");
   SerialJavaObject sjo2 = (SerialJavaObject) sjo.clone();
   assertTrue(sjo.equals(sjo2));
 }