ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ivasilin...@apache.org
Subject incubator-ignite git commit: #ignite-961: fix test for java7
Date Fri, 17 Jul 2015 12:10:08 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-961 e80010e86 -> a7f664e7f


#ignite-961: fix test for java7


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

Branch: refs/heads/ignite-961
Commit: a7f664e7f9aa0101c8a7c23ebc7b492884f8194f
Parents: e80010e
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Fri Jul 17 15:09:58 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Fri Jul 17 15:09:58 2015 +0300

----------------------------------------------------------------------
 .../processors/rest/JettyRestProcessorAbstractSelfTest.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/a7f664e7/modules/clients/src/test/java/org/apache/ignite/internal/processors/rest/JettyRestProcessorAbstractSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/clients/src/test/java/org/apache/ignite/internal/processors/rest/JettyRestProcessorAbstractSelfTest.java
b/modules/clients/src/test/java/org/apache/ignite/internal/processors/rest/JettyRestProcessorAbstractSelfTest.java
index 9504dc6..e1425ff 100644
--- a/modules/clients/src/test/java/org/apache/ignite/internal/processors/rest/JettyRestProcessorAbstractSelfTest.java
+++ b/modules/clients/src/test/java/org/apache/ignite/internal/processors/rest/JettyRestProcessorAbstractSelfTest.java
@@ -1095,7 +1095,7 @@ abstract class JettyRestProcessorAbstractSelfTest extends AbstractRestProcessorS
         String map = "function(nodes, arg) {" +
             "var words = arg.split(\" \");" +
             "for (var i = 0; i < words.length; i++) {" +
-            "var f = function (word) {" +
+            "var f = function(word) {" +
             "return word.length;" +
             "};" +
             "emit(f, words[i], nodes[i %  nodes.length]);" +
@@ -1104,8 +1104,8 @@ abstract class JettyRestProcessorAbstractSelfTest extends AbstractRestProcessorS
 
         String reduce =  "function(results) {"+
             "var sum = 0;"+
-            "for (var i = 0; i < results.length; ++i) {"+
-            "sum += results[i];"+
+            "for (var i = 0; i < results.size(); ++i) {"+
+            "sum += results.get(i).intValue();"+
             "}" +
             "return sum;" +
             "};";


Mime
View raw message