aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/java/com/iciql/test/ModelsTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/com/iciql/test/ModelsTest.java')
-rw-r--r--src/test/java/com/iciql/test/ModelsTest.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/java/com/iciql/test/ModelsTest.java b/src/test/java/com/iciql/test/ModelsTest.java
index 96a6e4a..9fef979 100644
--- a/src/test/java/com/iciql/test/ModelsTest.java
+++ b/src/test/java/com/iciql/test/ModelsTest.java
@@ -218,4 +218,12 @@ public class ModelsTest {
assertEquals("[Condiments=5, Beverages=2, Produce=1, Meat/Poultry=1]", categories.toString());
}
+ @Test
+ public void testWhereByString() {
+ Product products = new Product();
+
+ List<Product> seafoodProducts = db.from(products).where(products.category).is("Seafood").select();
+ assertEquals(1, seafoodProducts.size());
+ }
+
}