You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by xi...@apache.org on 2017/08/28 21:17:41 UTC
samza git commit: SAMZA-1410 make tests pass in different Junit
versions for testPlanIdWithShuffledStreamSpecs and
testGeneratePlanIdWithDifferentStreamSpec
Repository: samza
Updated Branches:
refs/heads/master 3636be031 -> 657438636
SAMZA-1410 make tests pass in different Junit versions for testPlanIdWithShuffledStreamSpecs and testGeneratePlanIdWithDifferentStreamSpec
More details are in https://issues.apache.org/jira/browse/SAMZA-1410.
gradlew build and test passed.
Author: Fred Ji <ha...@gmail.com>
Reviewers: Xinyu Liu <xi...@apache.org>
Closes #289 from fredji97/assertNotEquals
Project: http://git-wip-us.apache.org/repos/asf/samza/repo
Commit: http://git-wip-us.apache.org/repos/asf/samza/commit/65743863
Tree: http://git-wip-us.apache.org/repos/asf/samza/tree/65743863
Diff: http://git-wip-us.apache.org/repos/asf/samza/diff/65743863
Branch: refs/heads/master
Commit: 65743863626a3d6621ba7a4b101c7a91b807bce2
Parents: 3636be0
Author: Fred Ji <ha...@gmail.com>
Authored: Mon Aug 28 14:17:32 2017 -0700
Committer: Xinyu Liu <xi...@xiliu-ld1.linkedin.biz>
Committed: Mon Aug 28 14:17:32 2017 -0700
----------------------------------------------------------------------
.../org/apache/samza/runtime/TestLocalApplicationRunner.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/samza/blob/65743863/samza-core/src/test/java/org/apache/samza/runtime/TestLocalApplicationRunner.java
----------------------------------------------------------------------
diff --git a/samza-core/src/test/java/org/apache/samza/runtime/TestLocalApplicationRunner.java b/samza-core/src/test/java/org/apache/samza/runtime/TestLocalApplicationRunner.java
index 6c7827e..ecacf25 100644
--- a/samza-core/src/test/java/org/apache/samza/runtime/TestLocalApplicationRunner.java
+++ b/samza-core/src/test/java/org/apache/samza/runtime/TestLocalApplicationRunner.java
@@ -371,8 +371,8 @@ public class TestLocalApplicationRunner {
new StreamSpec("test-stream-1", "stream-1", "testStream"),
new StreamSpec("test-stream-3", "stream-3", "testStream"));
- assertNotEquals("Expected both of the latch ids to be different", planIdBeforeShuffle,
- getExecutionPlanId(shuffledStreamSpecs));
+ assertFalse("Expected both of the latch ids to be different",
+ planIdBeforeShuffle.equals(getExecutionPlanId(shuffledStreamSpecs)));
}
/**
@@ -409,8 +409,8 @@ public class TestLocalApplicationRunner {
new StreamSpec("test-stream-4", "stream-4", "testStream"),
new StreamSpec("test-stream-3", "stream-3", "testStream"));
- assertNotEquals("Expected both of the latch ids to be different", planIdBeforeShuffle,
- getExecutionPlanId(updatedStreamSpecs));
+ assertFalse("Expected both of the latch ids to be different",
+ planIdBeforeShuffle.equals(getExecutionPlanId(updatedStreamSpecs)));
}
private String getExecutionPlanId(List<StreamSpec> updatedStreamSpecs) {