ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sevdoki...@apache.org
Subject [2/3] incubator-ignite git commit: # IGNITE-379 Added the test that checks injection @CacheStoreSessionResource to parent class.
Date Fri, 06 Mar 2015 11:15:02 GMT
# IGNITE-379 Added the test that checks injection @CacheStoreSessionResource to parent class.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/34800f63
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/34800f63
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/34800f63

Branch: refs/heads/ignite-379-1
Commit: 34800f636a46a2eb0145cfda45279f66f09ad9c4
Parents: e19e002
Author: sevdokimov <sevdokimov@gridgain.com>
Authored: Thu Mar 5 13:28:45 2015 +0300
Committer: sevdokimov <sevdokimov@gridgain.com>
Committed: Thu Mar 5 13:28:45 2015 +0300

----------------------------------------------------------------------
 .../IgniteCacheStoreSessionAbstractTest.java         | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/34800f63/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/integration/IgniteCacheStoreSessionAbstractTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/integration/IgniteCacheStoreSessionAbstractTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/integration/IgniteCacheStoreSessionAbstractTest.java
index ae00ba4..d261a44 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/integration/IgniteCacheStoreSessionAbstractTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/integration/IgniteCacheStoreSessionAbstractTest.java
@@ -216,7 +216,7 @@ public abstract class IgniteCacheStoreSessionAbstractTest extends IgniteCacheAbs
          * @param expProps Expected properties.
          * @param expCacheName Expected cache name.
          */
-        public ExpectedData(boolean tx, String expMtd, Map<Object, Object> expProps,
String expCacheName) {
+        ExpectedData(boolean tx, String expMtd, Map<Object, Object> expProps, String
expCacheName) {
             this.tx = tx;
             this.expMtd = expMtd;
             this.expProps = expProps;
@@ -227,7 +227,16 @@ public abstract class IgniteCacheStoreSessionAbstractTest extends IgniteCacheAbs
     /**
      *
      */
-    private class TestStore implements CacheStore<Object, Object> {
+    private static class AbstractStore {
+        /** */
+        @CacheStoreSessionResource
+        protected CacheStoreSession sesInParent;
+    }
+
+    /**
+     *
+     */
+    private class TestStore extends AbstractStore implements CacheStore<Object, Object>
{
         /** Auto-injected store session. */
         @CacheStoreSessionResource
         private CacheStoreSession ses;
@@ -324,6 +333,8 @@ public abstract class IgniteCacheStoreSessionAbstractTest extends IgniteCacheAbs
 
             assertNotNull(ses);
 
+            assertSame(ses, sesInParent);
+
             if (exp.tx)
                 assertNotNull(ses.transaction());
             else


Mime
View raw message