diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2006-09-05 04:24:45 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2006-09-05 04:24:45 +0000 |
commit | f8a34e56903d3b1a8f6e7b0cb82250e0de6daf7a (patch) | |
tree | 52f806dbbccefdae9da05663c8ab7ef276454f5b /src | |
parent | f3b3c029be0ecda040e9ef461df2f66008351269 (diff) |
fix unit test
Diffstat (limited to 'src')
-rw-r--r-- | src/test/java/com/amazon/carbonado/qe/TestJoinedQueryExecutor.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/test/java/com/amazon/carbonado/qe/TestJoinedQueryExecutor.java b/src/test/java/com/amazon/carbonado/qe/TestJoinedQueryExecutor.java index 8a82758..e2c9f5e 100644 --- a/src/test/java/com/amazon/carbonado/qe/TestJoinedQueryExecutor.java +++ b/src/test/java/com/amazon/carbonado/qe/TestJoinedQueryExecutor.java @@ -33,6 +33,7 @@ import com.amazon.carbonado.Storage; import com.amazon.carbonado.filter.Filter;
import com.amazon.carbonado.filter.FilterValues;
+import com.amazon.carbonado.info.Direction;
import com.amazon.carbonado.info.OrderedProperty;
import com.amazon.carbonado.info.StorableIntrospector;
import com.amazon.carbonado.info.StorableProperty;
@@ -74,7 +75,7 @@ public class TestJoinedQueryExecutor extends TestQueryExecutor { (mRepository, UserInfo.class, "address", addressExecutor);
assertEquals("address.state = ?", userExecutor.getFilter().toString());
- assertEquals("address.country", userExecutor.getOrdering().get(0).toString());
+ assertEquals("+address.country", userExecutor.getOrdering().get(0).toString());
// Create some addresses
Storage<UserAddress> addressStorage = mRepository.storageFor(UserAddress.class);
@@ -149,7 +150,7 @@ public class TestJoinedQueryExecutor extends TestQueryExecutor { (mRepository, UserInfo.class, "address.neighbor", addressExecutor);
assertEquals("address.neighbor.state = ?", userExecutor.getFilter().toString());
- assertEquals("address.neighbor.country", userExecutor.getOrdering().get(0).toString());
+ assertEquals("+address.neighbor.country", userExecutor.getOrdering().get(0).toString());
values = Filter
.filterFor(UserInfo.class, "address.neighbor.state = ?")
@@ -180,7 +181,7 @@ public class TestJoinedQueryExecutor extends TestQueryExecutor { List<OrderedProperty<UserAddress>> orderings =
new ArrayList<OrderedProperty<UserAddress>>();
- orderings.add(OrderedProperty.get(prop, null));
+ orderings.add(OrderedProperty.get(prop, Direction.ASCENDING));
addressExecutor = new ArraySortedQueryExecutor<UserAddress>
(addressExecutor, null, orderings);
|