cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject cayenne git commit: testing more cache key scenarios
Date Thu, 22 Jan 2015 08:54:48 GMT
Repository: cayenne
Updated Branches:
  refs/heads/master c725bf09f -> be29a6d68


testing more cache key scenarios


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

Branch: refs/heads/master
Commit: be29a6d680431157d48fc28c43b72134eecd95d6
Parents: c725bf0
Author: aadamchik <aadamchik@apache.org>
Authored: Thu Jan 22 11:54:42 2015 +0300
Committer: aadamchik <aadamchik@apache.org>
Committed: Thu Jan 22 11:54:42 2015 +0300

----------------------------------------------------------------------
 .../src/test/java/org/apache/cayenne/query/SQLSelectTest.java     | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne/blob/be29a6d6/cayenne-server/src/test/java/org/apache/cayenne/query/SQLSelectTest.java
----------------------------------------------------------------------
diff --git a/cayenne-server/src/test/java/org/apache/cayenne/query/SQLSelectTest.java b/cayenne-server/src/test/java/org/apache/cayenne/query/SQLSelectTest.java
index 303d9e4..dcf58c4 100644
--- a/cayenne-server/src/test/java/org/apache/cayenne/query/SQLSelectTest.java
+++ b/cayenne-server/src/test/java/org/apache/cayenne/query/SQLSelectTest.java
@@ -126,13 +126,16 @@ public class SQLSelectTest {
 		QueryMetadata md0 = SQLSelect.dataRowQuery("bla").localCache().getMetaData(resolver);
 		QueryMetadata md1 = SQLSelect.dataRowQuery("bla").localCache().paramsArray("a").getMetaData(resolver);
 		QueryMetadata md2 = SQLSelect.dataRowQuery("bla").localCache().paramsArray("a", "b").getMetaData(resolver);
+		QueryMetadata md3 = SQLSelect.dataRowQuery("bla").localCache().paramsArray(null, "b").getMetaData(resolver);
 
 		assertNotNull(md0.getCacheKey());
 		assertNotNull(md1.getCacheKey());
 		assertNotNull(md2.getCacheKey());
+		assertNotNull(md3.getCacheKey());
 		
 		assertNotEquals(md0.getCacheKey(), md1.getCacheKey());
 		assertNotEquals(md0.getCacheKey(), md2.getCacheKey());
 		assertNotEquals(md1.getCacheKey(), md2.getCacheKey());
+		assertNotEquals(md3.getCacheKey(), md2.getCacheKey());
 	}
 }


Mime
View raw message