aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJames Moger <james.moger@gmail.com>2011-08-12 15:41:42 -0400
committerJames Moger <james.moger@gmail.com>2011-08-12 15:41:42 -0400
commit3622ae0026718ac8466e13e8011f8db309d89106 (patch)
tree39ff193be51b2970fd2b51efcaf73c669288005b /tests
parent373a5c74f4c5e8cc19812a63893f6090d8f14b95 (diff)
downloadiciql-3622ae0026718ac8466e13e8011f8db309d89106.tar.gz
iciql-3622ae0026718ac8466e13e8011f8db309d89106.zip
Fixed bug in delete() and update() where primary key is a primitive.v0.6.5
Diffstat (limited to 'tests')
-rw-r--r--tests/com/iciql/test/PrimitivesTest.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/com/iciql/test/PrimitivesTest.java b/tests/com/iciql/test/PrimitivesTest.java
index a200b57..9c214b1 100644
--- a/tests/com/iciql/test/PrimitivesTest.java
+++ b/tests/com/iciql/test/PrimitivesTest.java
@@ -74,6 +74,11 @@ public class PrimitivesTest {
List<PrimitivesModel> list = db.from(p).orderBy(p.myLong).select();
assertEquals(models.size(), list.size());
assertEquals("[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]", list.toString());
+
+ // test model update
+ retrievedModel.myInteger = 1337;
+ assertEquals(1, db.update(retrievedModel));
+ assertEquals(1, db.delete(retrievedModel));
db.close();
}