diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2006-09-20 03:00:40 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2006-09-20 03:00:40 +0000 |
commit | c16716f2d8e15f6539995c656ad05e4e8f799a21 (patch) | |
tree | 55a1bac1f15d23fbea3b665a56f1d94ccc5842ef /src/test/java/com/amazon/carbonado/qe | |
parent | 1c9a5991aa49724c34a20fcea6fd1252ce03b8d9 (diff) |
More tests and fixes.
Diffstat (limited to 'src/test/java/com/amazon/carbonado/qe')
-rw-r--r-- | src/test/java/com/amazon/carbonado/qe/TestUnionQueryAnalyzer.java | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/src/test/java/com/amazon/carbonado/qe/TestUnionQueryAnalyzer.java b/src/test/java/com/amazon/carbonado/qe/TestUnionQueryAnalyzer.java index 3d99c84..e9cc8f9 100644 --- a/src/test/java/com/amazon/carbonado/qe/TestUnionQueryAnalyzer.java +++ b/src/test/java/com/amazon/carbonado/qe/TestUnionQueryAnalyzer.java @@ -447,24 +447,12 @@ public class TestUnionQueryAnalyzer extends TestCase { (StorableTestBasic.class, "stringProp = ? | stringProp = ?");
filter = filter.bind();
UnionQueryAnalyzer.Result result = uqa.analyze(filter, null);
-
- boolean a = result.getTotalOrdering() ==
- OrderingList.get(StorableTestBasic.class, "+doubleProp", "+stringProp");
- boolean b = result.getTotalOrdering() ==
- OrderingList.get(StorableTestBasic.class, "+stringProp", "+doubleProp");
-
- assertTrue(a || b);
+ assertEquals(OrderingList.get(StorableTestBasic.class, "+stringProp", "+doubleProp"),
+ result.getTotalOrdering());
QueryExecutor<StorableTestBasic> exec = result.createExecutor();
-
- assertEquals(filter, exec.getFilter());
-
- a = exec.getOrdering() ==
- OrderingList.get(StorableTestBasic.class, "+doubleProp", "+stringProp");
- b = exec.getOrdering() ==
- OrderingList.get(StorableTestBasic.class, "+stringProp", "+doubleProp");
-
- assertTrue(a || b);
+ assertEquals(OrderingList.get(StorableTestBasic.class, "+stringProp", "+doubleProp"),
+ exec.getOrdering());
List<IndexedQueryAnalyzer<Shipment>.Result> subResults = result.getSubResults();
|