non static

This commit is contained in:
@hangga 2023-10-09 20:16:40 +07:00
parent 92d038dc3c
commit 70e6dcd47b
1 changed files with 0 additions and 13 deletions

View File

@ -80,17 +80,4 @@ class CompletableFutureTimeoutUnitTest {
.completeExceptionally(new TimeoutException("Timeout occurred")), DEFAULT_TIMEOUT, TimeUnit.MILLISECONDS);
assertThrows(ExecutionException.class, completableFuture::get);
}
@Test
void whencompletableDefault_thenGetReturn() {
CompletableFuture<Integer> completableFuture = createDummyRequest();
try {
int result = completableFuture.get();
assertEquals(TIMEOUT_STATUS_CODE, result);
} catch (InterruptedException | ExecutionException e) {
//System.out.println("ERROR->"+e.getMessage());
throw new RuntimeException(e);
}
}
}