OSDN Git Service

git-svn-id: http://www.xerial.org/svn/project/XerialJ/trunk/xerial-core@3329 ae02f08e...
authorleo <leo@ae02f08e-27ec-0310-ae8c-8ba02fe2eafd>
Thu, 21 May 2009 07:31:34 +0000 (07:31 +0000)
committerleo <leo@ae02f08e-27ec-0310-ae8c-8ba02fe2eafd>
Thu, 21 May 2009 07:31:34 +0000 (07:31 +0000)
src/test/java/org/xerial/lens/ObjectLensTest.java

index 570a78f..9cecf53 100644 (file)
@@ -129,7 +129,23 @@ public class ObjectLensTest
 
     public static class ExtList extends ArrayList<Integer>
     {
+        /**
+         * 
+         */
+        private static final long serialVersionUID = 1L;
         public String name = "ext-list";
+
+        @Override
+        public boolean equals(Object o)
+        {
+            if (!(o instanceof ExtList))
+                return false;
+
+            ExtList other = (ExtList) o;
+
+            return name.equals(other.name) && super.equals(other);
+
+        }
     }
 
     @Test
@@ -141,10 +157,10 @@ public class ObjectLensTest
         extList.add(14);
 
         String json = ObjectLens.toJSON(extList);
-        _logger.info(json);
+        _logger.debug(json);
 
         ExtList extList2 = Lens.loadJSON(ExtList.class, new StringReader(json));
-        _logger.info(ObjectLens.toJSON(extList2));
+        _logger.debug(ObjectLens.toJSON(extList2));
 
         assertEquals(extList, extList2);