Example #1
0
 public void testDescendToObject() {
   Query q = st.query();
   Object[] r = store();
   q.constrain(new STHashtableT());
   q.descend("col").descend("foo1").constrain("bar");
   st.expect(q, new Object[] {r[5], r[6]});
 }
Example #2
0
 public void testDescendOne() {
   Query q = st.query();
   Object[] r = store();
   q.constrain(STVectorEU.class);
   q.descend("col").constrain(new Integer(17));
   st.expect(q, new Object[] {r[0]});
 }
 public void testDescendOne() {
   Query q = st.query();
   Object[] r = store();
   q.constrain(STOwnCollectionW.class);
   q.descend("col").constrain(new Integer(17));
   st.expect(q, new Object[] {r[3], r[4]});
 }
Example #4
0
 public void testDescendSmaller() {
   Query q = st.query();
   Object[] r = store();
   q.constrain(STHashtableT.class);
   Query qElements = q.descend("col");
   qElements.constrain(new Integer(3)).smaller();
   st.expect(q, new Object[] {r[2], r[3]});
 }
Example #5
0
 public void testDescendTwo() {
   Query q = st.query();
   Object[] r = store();
   q.constrain(STHashtableT.class);
   Query qElements = q.descend("col");
   qElements.constrain(new Integer(17));
   qElements.constrain(new Integer(25));
   st.expect(q, new Object[] {r[4]});
 }
Example #6
0
 public void testDefaultContainsTwo() {
   Query q = st.query();
   Object[] r = store();
   q.constrain(new STHashtableT(new Object[] {new Integer(17), new Integer(25)}));
   st.expect(q, new Object[] {r[4]});
 }
Example #7
0
 public void testDefaultContainsString() {
   Query q = st.query();
   Object[] r = store();
   q.constrain(new STHashtableT(new Object[] {"foo"}));
   st.expect(q, new Object[] {r[5]});
 }
Example #8
0
 public void testDefaultContainsObject() {
   Query q = st.query();
   Object[] r = store();
   q.constrain(new STHashtableT(new Object[] {new STElement("bar", null)}));
   st.expect(q, new Object[] {r[5], r[6]});
 }
 public void testDefaultContainsInteger() {
   Query q = st.query();
   Object[] r = store();
   q.constrain(new STOwnCollectionW(new Object[] {new Integer(17)}));
   st.expect(q, new Object[] {r[3], r[4]});
 }