Skip to content

Commit 0b88647

Browse files
committed
apply spotless format
1 parent bfd5ca1 commit 0b88647

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

flink-runtime/src/test/java/org/apache/flink/runtime/highavailability/nonha/standalone/StandaloneHaServicesTest.java

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -145,26 +145,34 @@ public void testJobMasterLeaderRetrieval() throws Exception {
145145
}
146146

147147
/**
148-
* Tests that the constructor properly validates null parameters and provides meaningful error messages.
148+
* Tests that the constructor properly validates null parameters and provides meaningful error
149+
* messages.
149150
*/
150151
@Test
151152
public void testConstructorNullValidation() {
152153
// Test null resourceManagerAddress
153-
Exception exception = assertThrows(
154-
NullPointerException.class,
155-
() -> new StandaloneHaServices(null, dispatcherAddress, webMonitorAddress));
154+
Exception exception =
155+
assertThrows(
156+
NullPointerException.class,
157+
() -> new StandaloneHaServices(null, dispatcherAddress, webMonitorAddress));
156158
assertTrue(exception.getMessage().contains("resourceManagerAddress"));
157159

158160
// Test null dispatcherAddress
159-
exception = assertThrows(
160-
NullPointerException.class,
161-
() -> new StandaloneHaServices(resourceManagerAddress, null, webMonitorAddress));
161+
exception =
162+
assertThrows(
163+
NullPointerException.class,
164+
() ->
165+
new StandaloneHaServices(
166+
resourceManagerAddress, null, webMonitorAddress));
162167
assertTrue(exception.getMessage().contains("dispatcherAddress"));
163168

164169
// Test null clusterRestEndpointAddress
165-
exception = assertThrows(
166-
NullPointerException.class,
167-
() -> new StandaloneHaServices(resourceManagerAddress, dispatcherAddress, null));
170+
exception =
171+
assertThrows(
172+
NullPointerException.class,
173+
() ->
174+
new StandaloneHaServices(
175+
resourceManagerAddress, dispatcherAddress, null));
168176
assertTrue(exception.getMessage().contains("clusterRestEndpointAddress"));
169177
}
170178
}

0 commit comments

Comments
 (0)