ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [14/21] incubator-ignite git commit: #ignite-556: Add tests.
Date Mon, 23 Mar 2015 15:06:59 GMT
#ignite-556: Add tests.


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

Branch: refs/heads/ignite-45
Commit: 69c67c36a2c96c77a53397c8decdee15505953bc
Parents: 36cfb49
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Mon Mar 23 16:59:01 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Mon Mar 23 16:59:01 2015 +0300

----------------------------------------------------------------------
 .../apache/ignite/internal/IgniteDynamicCacheConfigTest.java    | 2 +-
 .../test/java/org/apache/ignite/internal/TestNodeFilter.java    | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/69c67c36/modules/spring/src/test/java/org/apache/ignite/internal/IgniteDynamicCacheConfigTest.java
----------------------------------------------------------------------
diff --git a/modules/spring/src/test/java/org/apache/ignite/internal/IgniteDynamicCacheConfigTest.java
b/modules/spring/src/test/java/org/apache/ignite/internal/IgniteDynamicCacheConfigTest.java
index e17bcad..9fd117a 100644
--- a/modules/spring/src/test/java/org/apache/ignite/internal/IgniteDynamicCacheConfigTest.java
+++ b/modules/spring/src/test/java/org/apache/ignite/internal/IgniteDynamicCacheConfigTest.java
@@ -38,7 +38,7 @@ public class IgniteDynamicCacheConfigTest extends GridCommonAbstractTest
{
     private static final String STATIC_CACHE_NAME = "TestStaticCache";
 
     /** */
-    private static final String TEST_ATTRIBUTE_NAME = "TEST_ATTRIBUTE_NAME";
+    private static final String TEST_ATTRIBUTE_NAME = TestNodeFilter.TEST_ATTRIBUTE_NAME;
 
     /** */
     private boolean testAttribute = true;

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/69c67c36/modules/spring/src/test/java/org/apache/ignite/internal/TestNodeFilter.java
----------------------------------------------------------------------
diff --git a/modules/spring/src/test/java/org/apache/ignite/internal/TestNodeFilter.java b/modules/spring/src/test/java/org/apache/ignite/internal/TestNodeFilter.java
index f81fc28..5d2c97d 100644
--- a/modules/spring/src/test/java/org/apache/ignite/internal/TestNodeFilter.java
+++ b/modules/spring/src/test/java/org/apache/ignite/internal/TestNodeFilter.java
@@ -24,8 +24,11 @@ import org.apache.ignite.lang.*;
  *
  */
 public class TestNodeFilter implements IgnitePredicate<ClusterNode> {
+    /** */
+    public static final String TEST_ATTRIBUTE_NAME = "TEST_ATTRIBUTE_NAME";
+
     @Override public boolean apply(ClusterNode n) {
-        Boolean val = n.attribute("TEST_ATTRIBUTE_NAM");
+        Boolean val = n.attribute(TEST_ATTRIBUTE_NAME);
 
         return val != null && val;
     }


Mime
View raw message