MCPcopy Index your code
hub / github.com/ccxt/ccxt / testReject

Method testReject

java/lib/src/test/java/io/github/ccxt/ws/FutureTest.java:23–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 }
22
23 @Test
24 void testReject() {
25 Future f = new Future();
26 f.reject(new RuntimeException("boom"));
27 assertTrue(f.isDone());
28 assertThrows(Exception.class, () -> f.getFuture().get(1, TimeUnit.SECONDS));
29 }
30
31 @Test
32 void testRejectWithString() {

Callers

nothing calls this directly

Calls 4

rejectMethod · 0.95
isDoneMethod · 0.95
getFutureMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected