1 21 package com.db4o.db4ounit.jre12.soda.experiments; 22 import java.util.*; 23 24 import com.db4o.query.*; 25 import com.db4o.test.legacy.soda.collections.*; 26 27 28 29 30 public class STCurrentTestCase extends com.db4o.db4ounit.common.soda.util.SodaBaseTestCase { 31 32 public String mystr; 33 34 public STCurrentTestCase() { 35 } 36 37 public STCurrentTestCase(String str) { 38 this.mystr = str; 39 } 40 41 public String toString() { 42 return "STCurrentTestCase: " + mystr; 43 } 44 45 public Object [] createData() { 46 return new Object [] { 47 new STVectorEU(new Object [] { new Integer (17)}), 48 new STVectorEU( 49 new Object [] { 50 new Integer (3), 51 new Integer (17), 52 new Integer (25), 53 new Integer (Integer.MAX_VALUE - 2)}), 54 new STVectorT(new Object [] { new Integer (17)}), 55 new STVectorU( 56 new Object [] { 57 new Integer (3), 58 new Integer (17), 59 new Integer (25), 60 new Integer (Integer.MAX_VALUE - 2)}), 61 }; 62 } 63 64 public void _testDescendOne() { 66 Query q = newQuery(); 67 68 q.constrain(STVectorEU.class); 69 q.descend("col").constrain(new Integer (17)); 70 expect(q, new int[] { 0 }); 71 } 72 73 85 113 public static class Employee { 114 public String name; 115 public Float salary; 116 public Department dept; 117 public Employee boss; 118 } 119 120 public static class Department { 121 public String name; 122 public Collection emps; 123 public Department() { 124 } 125 public Department(String name) { 126 } 127 } 128 129 } 130 131 | Popular Tags |