Mod assert methods


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

Branch: refs/heads/JIRA-22/pr-336
Commit: 3550fd30af3a01f4217c075a3b814952b406aebe
Parents: 1f3df54
Author: amaya <g...@sapphire.in.net>
Authored: Fri Nov 18 01:57:47 2016 +0900
Committer: amaya <g...@sapphire.in.net>
Committed: Fri Nov 18 01:57:47 2016 +0900

----------------------------------------------------------------------
 .../main/java/hivemall/systemtest/runner/SystemTestRunner.java | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/3550fd30/systemtest/src/main/java/hivemall/systemtest/runner/SystemTestRunner.java
----------------------------------------------------------------------
diff --git 
a/systemtest/src/main/java/hivemall/systemtest/runner/SystemTestRunner.java 
b/systemtest/src/main/java/hivemall/systemtest/runner/SystemTestRunner.java
index 77091f2..f16da90 100644
--- a/systemtest/src/main/java/hivemall/systemtest/runner/SystemTestRunner.java
+++ b/systemtest/src/main/java/hivemall/systemtest/runner/SystemTestRunner.java
@@ -195,12 +195,10 @@ public abstract class SystemTestRunner extends 
ExternalResource {
 
         if (ordered) {
             // take order into consideration (like list)
-            Assert.assertThat(Arrays.asList(answer.split(IO.RD)),
-                Matchers.contains(result.toArray()));
+            Assert.assertThat(result, Matchers.contains(answer.split(IO.RD)));
         } else {
             // not take order into consideration (like multiset)
-            Assert.assertThat(Arrays.asList(answer.split(IO.RD)),
-                Matchers.containsInAnyOrder(result.toArray()));
+            Assert.assertThat(result, 
Matchers.containsInAnyOrder(answer.split(IO.RD)));
         }
     }
 

Reply via email to