diff options
author | James Moger <james.moger@gmail.com> | 2011-08-08 07:54:28 -0400 |
---|---|---|
committer | James Moger <james.moger@gmail.com> | 2011-08-08 07:54:28 -0400 |
commit | 19326deded5a62997962d6d612de4b857303e21b (patch) | |
tree | 766efb5eb93f5a5c7edfaf4b8acec66ff2883d0d /tests/com/iciql/test | |
parent | 99359ad5077e416c897e9596f081fc694f9ae5df (diff) | |
download | iciql-19326deded5a62997962d6d612de4b857303e21b.tar.gz iciql-19326deded5a62997962d6d612de4b857303e21b.zip |
Refinement to BETWEEN to feel more like the rest of the API.
Diffstat (limited to 'tests/com/iciql/test')
-rw-r--r-- | tests/com/iciql/test/ModelsTest.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/com/iciql/test/ModelsTest.java b/tests/com/iciql/test/ModelsTest.java index c529012..0caae4b 100644 --- a/tests/com/iciql/test/ModelsTest.java +++ b/tests/com/iciql/test/ModelsTest.java @@ -131,13 +131,13 @@ public class ModelsTest { List<EnumModels> list = db.from(e).where(e.tree()).atLeast(Tree.BIRCH).select(); assertEquals(3, list.size()); - + // between is an int compare - list = db.from(e).where(e.tree()).between(Tree.BIRCH, Tree.WALNUT).select(); + list = db.from(e).where(e.tree()).between(Tree.BIRCH).and(Tree.WALNUT).select(); assertEquals(2, list.size()); } - + private void testStringEnums(EnumModels e, List<?> models) { db.insertAll(models); @@ -148,9 +148,9 @@ public class ModelsTest { List<EnumModels> list = db.from(e).where(e.tree()).isNot(Tree.BIRCH).select(); assertEquals(models.size() - 1, list.size()); - + // between is a string compare - list = db.from(e).where(e.tree()).between(Tree.MAPLE, Tree.PINE).select(); + list = db.from(e).where(e.tree()).between(Tree.MAPLE).and(Tree.PINE).select(); assertEquals(3, list.size()); } |