Skip to content

Commit de35c76

Browse files
committed
Fix Checkstyle LineLength violations in TestRackawareEnsemblePlacementPolicyUsingScript
1 parent d17a81c commit de35c76

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

bookkeeper-server/src/test/java/org/apache/bookkeeper/client/TestRackawareEnsemblePlacementPolicyUsingScript.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,11 +477,13 @@ public void testUseHostnameArgsOption() throws Exception {
477477

478478
// Mock NetUtils.
479479
try (MockedStatic<NetUtils> netUtils = Mockito.mockStatic(NetUtils.class)) {
480-
netUtils.when(() -> NetUtils.resolveNetworkLocation(any(DNSToSwitchMapping.class), any(BookieSocketAddress.class))).thenCallRealMethod();
480+
netUtils.when(() -> NetUtils.resolveNetworkLocation(
481+
any(DNSToSwitchMapping.class), any(BookieSocketAddress.class))).thenCallRealMethod();
481482
netUtils.when(() -> NetUtils.normalizeToHostNames(any())).thenCallRealMethod();
482483
netUtils.when(() -> NetUtils.normalizeToHostName(anyString())).thenCallRealMethod();
483484

484-
netUtils.when(() -> NetUtils.normalizeToHostName(eq(InetAddress.getLocalHost().getHostAddress()))).thenReturn("bookie1");
485+
netUtils.when(() -> NetUtils.normalizeToHostName(
486+
eq(InetAddress.getLocalHost().getHostAddress()))).thenReturn("bookie1");
485487
netUtils.when(() -> NetUtils.normalizeToHostName(eq("127.0.0.4"))).thenReturn("bookie22");
486488

487489
// Initialize RackawareEnsemblePlacementPolicy.
@@ -518,7 +520,8 @@ public void testUseHostnameArgsOption() throws Exception {
518520
addr1.toBookieId(), new HashSet<>()).getResult();
519521
assertEquals(addr2.toBookieId(), replacedBookie);
520522

521-
netUtils.verify(() -> NetUtils.normalizeToHostName(eq(InetAddress.getLocalHost().getHostAddress())), times(1));
523+
netUtils.verify(() -> NetUtils.normalizeToHostName(
524+
eq(InetAddress.getLocalHost().getHostAddress())), times(1));
522525
netUtils.verify(() -> NetUtils.normalizeToHostName(eq("127.0.0.4")), times(1));
523526
}
524527
}

0 commit comments

Comments
 (0)