@@ -21,9 +21,9 @@ void callbackConfig_withInvalidTimeout_shouldThrow() {
2121
2222 @ Test
2323 void callbackConfig_withInvalidHeartbeatTimeout_shouldThrow () {
24- var exception = assertThrows (
25- IllegalArgumentException . class ,
26- () -> CallbackConfig . builder (). heartbeatTimeout ( Duration . ofMillis ( 999 )) .build ());
24+ var exception = assertThrows (IllegalArgumentException . class , () -> CallbackConfig . builder ()
25+ . heartbeatTimeout ( Duration . ofMillis ( 999 ))
26+ .build ());
2727
2828 assertTrue (exception .getMessage ().contains ("Heartbeat timeout" ));
2929 assertTrue (exception .getMessage ().contains ("at least 1 second" ));
@@ -39,10 +39,8 @@ void callbackConfig_withValidTimeouts_shouldPass() {
3939
4040 @ Test
4141 void callbackConfig_withNullTimeouts_shouldPass () {
42- assertDoesNotThrow (() -> CallbackConfig .builder ()
43- .timeout (null )
44- .heartbeatTimeout (null )
45- .build ());
42+ assertDoesNotThrow (() ->
43+ CallbackConfig .builder ().timeout (null ).heartbeatTimeout (null ).build ());
4644 }
4745
4846 @ Test
@@ -57,7 +55,8 @@ void invokeConfig_withInvalidTimeout_shouldThrow() {
5755
5856 @ Test
5957 void invokeConfig_withValidTimeout_shouldPass () {
60- assertDoesNotThrow (() -> InvokeConfig .builder ().timeout (Duration .ofSeconds (30 )).build ());
58+ assertDoesNotThrow (
59+ () -> InvokeConfig .builder ().timeout (Duration .ofSeconds (30 )).build ());
6160 }
6261
6362 @ Test
@@ -67,9 +66,9 @@ void invokeConfig_withNullTimeout_shouldPass() {
6766
6867 @ Test
6968 void durableConfig_withInvalidPollingInterval_shouldThrow () {
70- var exception = assertThrows (
71- IllegalArgumentException . class ,
72- () -> DurableConfig . builder (). withPollingInterval ( Duration . ofMillis ( 500 )) .build ());
69+ var exception = assertThrows (IllegalArgumentException . class , () -> DurableConfig . builder ()
70+ . withPollingInterval ( Duration . ofMillis ( 500 ))
71+ .build ());
7372
7473 assertTrue (exception .getMessage ().contains ("Polling interval" ));
7574 assertTrue (exception .getMessage ().contains ("at least 1 second" ));
@@ -84,8 +83,7 @@ void durableConfig_withValidPollingInterval_shouldPass() {
8483
8584 @ Test
8685 void durableConfig_withNullPollingInterval_shouldPass () {
87- assertDoesNotThrow (() -> DurableConfig .builder ()
88- .withPollingInterval (null )
89- .build ());
86+ assertDoesNotThrow (
87+ () -> DurableConfig .builder ().withPollingInterval (null ).build ());
9088 }
9189}
0 commit comments