Fix error_prone pattern AssertEqualsArgumentOrderChecker Change-Id: I98d9a8bff87189e2c2349dbcd27fc8ce05263442
diff --git a/src/test/java/com/googlesource/gerrit/plugins/replication/ReplicationTasksStorageTaskTest.java b/src/test/java/com/googlesource/gerrit/plugins/replication/ReplicationTasksStorageTaskTest.java index 43c0b3e..b996938 100644 --- a/src/test/java/com/googlesource/gerrit/plugins/replication/ReplicationTasksStorageTaskTest.java +++ b/src/test/java/com/googlesource/gerrit/plugins/replication/ReplicationTasksStorageTaskTest.java
@@ -378,8 +378,8 @@ new URIish("git://host1/someRepo.git"), "someRemote"); assertEquals( - gson.toJson(update), - "{\"project\":\"someProject\",\"refs\":[\"ref1\"],\"uri\":\"git://host1/someRepo.git\",\"remote\":\"someRemote\"}"); + /* expected= */ "{\"project\":\"someProject\",\"refs\":[\"ref1\"],\"uri\":\"git://host1/someRepo.git\",\"remote\":\"someRemote\"}", + /* actual= */ gson.toJson(update)); ReplicateRefUpdate update2 = ReplicateRefUpdate.create( "someProject", @@ -387,8 +387,8 @@ new URIish("git://host1/someRepo.git"), "someRemote"); assertEquals( - gson.toJson(update2), - "{\"project\":\"someProject\",\"refs\":[\"ref1\",\"ref2\"],\"uri\":\"git://host1/someRepo.git\",\"remote\":\"someRemote\"}"); + /* expected= */ "{\"project\":\"someProject\",\"refs\":[\"ref1\",\"ref2\"],\"uri\":\"git://host1/someRepo.git\",\"remote\":\"someRemote\"}", + /* actual= */ gson.toJson(update2)); } @Test