polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulmer...@apache.org
Subject [10/13] zest-java git commit: io: fix i/o test
Date Thu, 08 Dec 2016 23:44:19 GMT
io: fix i/o test


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

Branch: refs/heads/develop
Commit: ff0f3bee6718ae927c83fa956a1417151b4a55ba
Parents: 3c34b37
Author: Paul Merlin <paulmerlin@apache.org>
Authored: Fri Dec 9 00:11:42 2016 +0100
Committer: Paul Merlin <paulmerlin@apache.org>
Committed: Fri Dec 9 00:11:42 2016 +0100

----------------------------------------------------------------------
 core/io/src/test/java/org/apache/zest/io/InputOutputTest.java | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zest-java/blob/ff0f3bee/core/io/src/test/java/org/apache/zest/io/InputOutputTest.java
----------------------------------------------------------------------
diff --git a/core/io/src/test/java/org/apache/zest/io/InputOutputTest.java b/core/io/src/test/java/org/apache/zest/io/InputOutputTest.java
index 844acef..28d52b0 100644
--- a/core/io/src/test/java/org/apache/zest/io/InputOutputTest.java
+++ b/core/io/src/test/java/org/apache/zest/io/InputOutputTest.java
@@ -47,7 +47,6 @@ import org.junit.Test;
 import org.apache.zest.functional.Visitor;
 
 import static java.util.Arrays.asList;
-import static org.apache.zest.functional.Iterables.iterable;
 import static org.apache.zest.io.Inputs.text;
 import static org.apache.zest.io.Transforms.lock;
 import static org.apache.zest.test.util.Assume.assumeConnectivity;
@@ -162,11 +161,11 @@ public class InputOutputTest
         Integer[] data = new Integer[ 105 ];
         Arrays.fill( data, 42 );
 
-        Inputs.iterable( iterable( data ) ).transferTo(
+        Inputs.iterable( Arrays.asList( data ) ).transferTo(
             Transforms.map(
-                new Transforms.ProgressLog<Integer>(
+                new Transforms.ProgressLog<>(
                     Logger.getLogger( InputOutputTest.class.getName() ), "Data transferred:
{0}", 10 ),
-                Outputs.<Integer>noop() ) );
+                Outputs.noop() ) );
     }
 
     @Test


Mime
View raw message