Skip to content

Commit 3a9de27

Browse files
committed
added test coverage for app.java and fixed random to be thread safe #2973
1 parent fe253e4 commit 3a9de27

File tree

1 file changed

+1
-0
lines changed
  • rate-limiting-pattern/src/test/java/com/iluwatar/rate/limiting/pattern

1 file changed

+1
-0
lines changed

rate-limiting-pattern/src/test/java/com/iluwatar/rate/limiting/pattern/AppTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ void shouldHandleServiceUnavailableException() throws Exception {
4545
assertEquals(1, AppTestUtils.getFailedRequests().get());
4646
}
4747

48+
4849
@Test
4950
void shouldHandleGenericException() throws Exception {
5051
doThrow(new RuntimeException("Unexpected")).when(mockLimiter).check(any(), any());

0 commit comments

Comments
 (0)