ReplicationIT: Reformat with google-java-format 1.35.0 Several scheduleFullSync() invocations exceed the 100-column limit and were left unwrapped, so google-java-format 1.35.0 (the tree's default, tools/gjf.sh) flags them. Change-Id: I63da43e4db4a29095736eb228a63851d51087cc1
diff --git a/src/test/java/com/googlesource/gerrit/plugins/replication/ReplicationIT.java b/src/test/java/com/googlesource/gerrit/plugins/replication/ReplicationIT.java index 7ff0f3b..d54cb7c 100644 --- a/src/test/java/com/googlesource/gerrit/plugins/replication/ReplicationIT.java +++ b/src/test/java/com/googlesource/gerrit/plugins/replication/ReplicationIT.java
@@ -256,7 +256,8 @@ plugin .getSysInjector() .getInstance(ReplicationQueue.class) - .scheduleFullSync(project, urlMatch, PushOne.ALL_REFS, Set.of(), new ReplicationState(NO_OP), true); + .scheduleFullSync( + project, urlMatch, PushOne.ALL_REFS, Set.of(), new ReplicationState(NO_OP), true); try (Repository repo = repoManager.openRepository(targetProject)) { waitUntil(() -> checkedGetRef(repo, newRef) != null); @@ -282,7 +283,8 @@ plugin .getSysInjector() .getInstance(ReplicationQueue.class) - .scheduleFullSync(project, urlMatch, PushOne.ALL_REFS, Set.of(), new ReplicationState(NO_OP), true); + .scheduleFullSync( + project, urlMatch, PushOne.ALL_REFS, Set.of(), new ReplicationState(NO_OP), true); try (Repository repo = repoManager.openRepository(targetProject)) { waitUntil(() -> checkedGetRef(repo, newRef) != null); @@ -544,7 +546,8 @@ plugin .getSysInjector() .getInstance(ReplicationQueue.class) - .scheduleFullSync(project, null, PushOne.ALL_REFS, Set.of(), new ReplicationState(NO_OP), true); + .scheduleFullSync( + project, null, PushOne.ALL_REFS, Set.of(), new ReplicationState(NO_OP), true); // Wait for the push to land on both the refs try (Repository r1 = repoManager.openRepository(replica1Project); @@ -569,7 +572,8 @@ plugin .getSysInjector() .getInstance(ReplicationQueue.class) - .scheduleFullSync(project, null, PushOne.ALL_REFS, Set.of(), new ReplicationState(NO_OP), true); + .scheduleFullSync( + project, null, PushOne.ALL_REFS, Set.of(), new ReplicationState(NO_OP), true); // Wait for the push to land in at least one replica try (Repository r1 = repoManager.openRepository(replica1Project); @@ -600,7 +604,8 @@ ReplicationQueue queue = plugin.getSysInjector().getInstance(ReplicationQueue.class); // First sync - goes to replica1 (index 0) - queue.scheduleFullSync(project, null, PushOne.ALL_REFS, Set.of(), new ReplicationState(NO_OP), true); + queue.scheduleFullSync( + project, null, PushOne.ALL_REFS, Set.of(), new ReplicationState(NO_OP), true); try (Repository r1 = repoManager.openRepository(replica1Project)) { waitUntil(() -> checkedGetRef(r1, branch1) != null); @@ -613,7 +618,8 @@ // Second sync - goes to replica2 (index 1), includes branch1 and branch2 createNewBranchWithoutPush("refs/heads/master", branch2); - queue.scheduleFullSync(project, null, PushOne.ALL_REFS, Set.of(), new ReplicationState(NO_OP), true); + queue.scheduleFullSync( + project, null, PushOne.ALL_REFS, Set.of(), new ReplicationState(NO_OP), true); try (Repository r2 = repoManager.openRepository(replica2Project)) { waitUntil(() -> checkedGetRef(r2, branch1) != null && checkedGetRef(r2, branch2) != null); @@ -638,7 +644,8 @@ plugin .getSysInjector() .getInstance(ReplicationQueue.class) - .scheduleFullSync(project, null, PushOne.ALL_REFS, Set.of("foo"), new ReplicationState(NO_OP), true); + .scheduleFullSync( + project, null, PushOne.ALL_REFS, Set.of("foo"), new ReplicationState(NO_OP), true); try (Repository repo = repoManager.openRepository(targetProject)) { waitUntil(() -> checkedGetRef(repo, newRef) != null);