1 21 package com.db4o.db4ounit.common.soda.classes.untypedhierarchy; 22 24 import com.db4o.query.*; 25 26 27 28 43 public class STInnerClassesTestCase extends com.db4o.db4ounit.common.soda.util.SodaBaseTestCase 44 { 45 46 public class Parent 47 { 48 public Object child; 49 public Parent(Object o) { child = o; } 50 public String toString() { return "Parent[" + child + "]"; } 51 public Parent() {} 52 } 53 54 55 public class FirstClass 56 { 57 public Object childFirst; 58 public FirstClass(Object o ) { childFirst = o; } 59 public String toString() { return "First[" + childFirst + "]"; } 60 public FirstClass() {} 61 } 62 63 public STInnerClassesTestCase () 64 { 65 } 66 67 public Object [] createData() { 68 return new Object [] 69 { 70 new Parent(new FirstClass("Example")), 71 new Parent(new FirstClass("no Example")), 72 }; 73 } 74 75 78 public void testNothing() 79 { 80 Query q = newQuery(); 81 q.descend("child"); 82 83 com.db4o.db4ounit.common.soda.util.SodaTestUtil.expect(q, _array); 84 } 86 87 } | Popular Tags |