You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@twill.apache.org by ch...@apache.org on 2015/01/26 22:25:59 UTC

[4/4] incubator-twill git commit: Fix wrong arguments order when calling Assert.equals.

Fix wrong arguments order when calling Assert.equals.


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

Branch: refs/heads/branch-0.4.1
Commit: 0bef101b9c7d2d80ee165ad6e80d4dfe80f9eba2
Parents: ae4ed40
Author: Terence Yim <ch...@apache.org>
Authored: Fri Oct 24 16:50:52 2014 -0700
Committer: Terence Yim <ch...@apache.org>
Committed: Mon Jan 26 13:25:46 2015 -0800

----------------------------------------------------------------------
 .../test/java/org/apache/twill/yarn/PlacementPolicyTestRun.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-twill/blob/0bef101b/twill-yarn/src/test/java/org/apache/twill/yarn/PlacementPolicyTestRun.java
----------------------------------------------------------------------
diff --git a/twill-yarn/src/test/java/org/apache/twill/yarn/PlacementPolicyTestRun.java b/twill-yarn/src/test/java/org/apache/twill/yarn/PlacementPolicyTestRun.java
index 8981b66..0da9dd2 100644
--- a/twill-yarn/src/test/java/org/apache/twill/yarn/PlacementPolicyTestRun.java
+++ b/twill-yarn/src/test/java/org/apache/twill/yarn/PlacementPolicyTestRun.java
@@ -108,7 +108,7 @@ public class PlacementPolicyTestRun extends BaseYarnTest {
     Set<Integer> nmPorts = Sets.newHashSet();
     Collection<TwillRunResources> distributedResource;
 
-    Assert.assertEquals(getProvisionedNodeManagerCount(), 0);
+    Assert.assertEquals(0, getProvisionedNodeManagerCount());
     TwillRunner runner = YarnTestUtils.getTwillRunner();
     TwillController controller = runner.prepare(new PlacementPolicyApplication())
       .addLogHandler(new PrinterLogHandler(new PrintWriter(System.out, true)))
@@ -170,7 +170,7 @@ public class PlacementPolicyTestRun extends BaseYarnTest {
     Collection<TwillRunResources> aliceResources;
     Collection<TwillRunResources> bobResources;
 
-    Assert.assertEquals(getProvisionedNodeManagerCount(), 0);
+    Assert.assertEquals(0, getProvisionedNodeManagerCount());
     TwillRunner runner = YarnTestUtils.getTwillRunner();
     TwillController controller = runner.prepare(new DistributedApplication())
       .addLogHandler(new PrinterLogHandler(new PrintWriter(System.out, true)))