cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntimof...@apache.org
Subject [2/2] cayenne git commit: Fix tests
Date Thu, 31 Aug 2017 10:59:29 GMT
Fix tests


Project: http://git-wip-us.apache.org/repos/asf/cayenne/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne/commit/f074a59b
Tree: http://git-wip-us.apache.org/repos/asf/cayenne/tree/f074a59b
Diff: http://git-wip-us.apache.org/repos/asf/cayenne/diff/f074a59b

Branch: refs/heads/STABLE-4.0
Commit: f074a59b7b52f4d0a40117c9f6841b6ac9b58c50
Parents: 4adfc53
Author: Nikita Timofeev <stariy95@gmail.com>
Authored: Thu Aug 31 13:54:08 2017 +0300
Committer: Nikita Timofeev <stariy95@gmail.com>
Committed: Thu Aug 31 13:54:08 2017 +0300

----------------------------------------------------------------------
 .../src/test/java/org/apache/cayenne/query/SQLTemplateIT.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne/blob/f074a59b/cayenne-server/src/test/java/org/apache/cayenne/query/SQLTemplateIT.java
----------------------------------------------------------------------
diff --git a/cayenne-server/src/test/java/org/apache/cayenne/query/SQLTemplateIT.java b/cayenne-server/src/test/java/org/apache/cayenne/query/SQLTemplateIT.java
index 020364a..30f4151 100644
--- a/cayenne-server/src/test/java/org/apache/cayenne/query/SQLTemplateIT.java
+++ b/cayenne-server/src/test/java/org/apache/cayenne/query/SQLTemplateIT.java
@@ -161,7 +161,7 @@ public class SQLTemplateIT extends ServerCase {
 
 	@Test
 	public void testSQLTemplateSelectNullObjects() throws Exception {
-		tPainting.insert(1, null, "p1", BigInteger.valueOf(10L));
+		tPainting.insert(1, null, "p1", 10);
 
 
 		String sql = "SELECT p.GALLERY_ID FROM PAINTING p";
@@ -175,7 +175,7 @@ public class SQLTemplateIT extends ServerCase {
 
 	@Test(expected = CayenneRuntimeException.class)
 	public void testSQLTemplateSelectInvalid() throws Exception {
-		tPainting.insert(1, null, "p1", BigInteger.valueOf(10L));
+		tPainting.insert(1, null, "p1", 10);
 
 		String sql = "SELECT p.PAINTING_TITLE FROM PAINTING p";
 		SQLTemplate q1 = new SQLTemplate(Gallery.class, sql);


Mime
View raw message