Change parameter order in assertEquals (#30247)
This commit is contained in:
parent
b989c4cf3e
commit
48e4f11dfd
4 changed files with 10 additions and 10 deletions
|
|
@ -25,8 +25,8 @@ public class StashJavaAPITestActors {
|
|||
return count + 1;
|
||||
}
|
||||
} else if (msg instanceof Integer) {
|
||||
int value = ((Integer) msg).intValue();
|
||||
assertEquals(value, 5);
|
||||
int value = (Integer) msg;
|
||||
assertEquals(5, value);
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,6 +28,6 @@ public class ActorSystemSetupTest extends JUnitSuite {
|
|||
ActorSystemSetup.create().withSetup(javaSetting).get(JavaSetup.class);
|
||||
|
||||
assertTrue(result.isPresent());
|
||||
assertEquals(result.get(), javaSetting);
|
||||
assertEquals(javaSetting, result.get());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -180,8 +180,8 @@ public class ReplicatedEventSourcingTest extends JUnitSuite {
|
|||
replicaA.tell(new TestBehavior.GetState(probe.ref().narrow()));
|
||||
TestBehavior.State reply = probe.expectMessageClass(TestBehavior.State.class);
|
||||
assertEquals(
|
||||
reply.texts,
|
||||
new HashSet<String>(Arrays.asList("stored-to-a", "stored-to-b", "stored-to-c")));
|
||||
new HashSet<>(Arrays.asList("stored-to-a", "stored-to-b", "stored-to-c")),
|
||||
reply.texts);
|
||||
return null;
|
||||
});
|
||||
probe.awaitAssert(
|
||||
|
|
@ -189,8 +189,8 @@ public class ReplicatedEventSourcingTest extends JUnitSuite {
|
|||
replicaB.tell(new TestBehavior.GetState(probe.ref().narrow()));
|
||||
TestBehavior.State reply = probe.expectMessageClass(TestBehavior.State.class);
|
||||
assertEquals(
|
||||
reply.texts,
|
||||
new HashSet<String>(Arrays.asList("stored-to-a", "stored-to-b", "stored-to-c")));
|
||||
new HashSet<>(Arrays.asList("stored-to-a", "stored-to-b", "stored-to-c")),
|
||||
reply.texts);
|
||||
return null;
|
||||
});
|
||||
probe.awaitAssert(
|
||||
|
|
@ -198,8 +198,8 @@ public class ReplicatedEventSourcingTest extends JUnitSuite {
|
|||
replicaC.tell(new TestBehavior.GetState(probe.ref().narrow()));
|
||||
TestBehavior.State reply = probe.expectMessageClass(TestBehavior.State.class);
|
||||
assertEquals(
|
||||
reply.texts,
|
||||
new HashSet<String>(Arrays.asList("stored-to-a", "stored-to-b", "stored-to-c")));
|
||||
new HashSet<>(Arrays.asList("stored-to-a", "stored-to-b", "stored-to-c")),
|
||||
reply.texts);
|
||||
return null;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ public class ReplicatedAuctionExampleTest extends JUnitSuite {
|
|||
() -> {
|
||||
replicaA.tell(new GetHighestBid(replyProbe.ref()));
|
||||
Bid bid = replyProbe.expectMessageClass(Bid.class);
|
||||
assertEquals(bid.offer, 202);
|
||||
assertEquals(202, bid.offer);
|
||||
return bid;
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue