summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-11-07 07:57:40 -0500
committerJames Moger <james.moger@gitblit.com>2014-11-07 08:06:25 -0500
commit468775706732f3e85af878710aaf95c81f5b60f2 (patch)
tree4cc32ee801413ac2a888b298864b00f12576cc02 /src/test
parent9817bb2b4712e20e88f8a7803dec41d66263eb81 (diff)
downloadiciql-468775706732f3e85af878710aaf95c81f5b60f2.tar.gz
iciql-468775706732f3e85af878710aaf95c81f5b60f2.zip
Change return types for several Db methods to indicate status
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/com/iciql/test/PrimitivesTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/java/com/iciql/test/PrimitivesTest.java b/src/test/java/com/iciql/test/PrimitivesTest.java
index 3d3811e..0e8bf20 100644
--- a/src/test/java/com/iciql/test/PrimitivesTest.java
+++ b/src/test/java/com/iciql/test/PrimitivesTest.java
@@ -79,17 +79,17 @@ public class PrimitivesTest {
// test model update
retrievedModel.myInteger = 1337;
- assertEquals(1, db.update(retrievedModel));
- assertEquals(1, db.delete(retrievedModel));
+ assertTrue(db.update(retrievedModel));
+ assertTrue(db.delete(retrievedModel));
db.close();
}
-
+
@Test
public void testMultipleBooleans() {
Db db = IciqlSuite.openNewDb();
db.insertAll(MultipleBoolsModel.getList());
-
+
MultipleBoolsModel m = new MultipleBoolsModel();
try {
db.from(m).where(m.a).is(true).select();