コード例 #1
0
 /*
  * Validate that an getFields()s returns the same Field[] for the object
  * used to create the SerialJavaObject
  */
 @Test
 public void test02() throws Exception {
   SerialException e = new SerialException();
   SerialJavaObject sjo = new SerialJavaObject(e);
   Field[] f = e.getClass().getFields();
   assertTrue(Arrays.equals(f, sjo.getFields()));
   assertFalse(Arrays.equals("hello".getClass().getFields(), sjo.getFields()));
 }