diff options
author | Marco Miller <marco.miller@ericsson.com> | 2016-05-05 10:49:51 -0400 |
---|---|---|
committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2016-05-06 01:37:25 +0000 |
commit | 4883981228e871f9b58c01197c01d93ded6250d2 (patch) | |
tree | fd5ae4471acad83795f3af1674918afd80707c8a | |
parent | 17801ecc67781d7ce1304ab10b1c8219855475d2 (diff) |
Add RefReplicatedEvent refStatus testing similarly to sibling members
Change-Id: Ia7feb1b9983dff144d521da8c7253c66bbf6eb6b
-rw-r--r-- | src/test/java/com/googlesource/gerrit/plugins/replication/RefReplicatedEventEquals.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/java/com/googlesource/gerrit/plugins/replication/RefReplicatedEventEquals.java b/src/test/java/com/googlesource/gerrit/plugins/replication/RefReplicatedEventEquals.java index c2efcad..d614463 100644 --- a/src/test/java/com/googlesource/gerrit/plugins/replication/RefReplicatedEventEquals.java +++ b/src/test/java/com/googlesource/gerrit/plugins/replication/RefReplicatedEventEquals.java @@ -48,6 +48,9 @@ public class RefReplicatedEventEquals implements IArgumentMatcher { if (!equals(expected.status, actualRefReplicatedEvent.status)) { return false; } + if (!equals(expected.refStatus, actualRefReplicatedEvent.refStatus)) { + return false; + } return true; } @@ -73,6 +76,8 @@ public class RefReplicatedEventEquals implements IArgumentMatcher { buffer.append(expected.targetNode); buffer.append("\" and status \""); buffer.append(expected.status); + buffer.append("\" and refStatus \""); + buffer.append(expected.refStatus); buffer.append("\")"); } } |