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

Method testResolve

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

Source from the content-addressed store, hash-verified

12class FutureTest {
13
14 @Test
15 void testResolve() throws Exception {
16 Future f = new Future();
17 assertFalse(f.isDone());
18 f.resolve("hello");
19 assertTrue(f.isDone());
20 assertEquals("hello", f.getFuture().get(1, TimeUnit.SECONDS));
21 }
22
23 @Test
24 void testReject() {

Callers

nothing calls this directly

Calls 4

isDoneMethod · 0.95
resolveMethod · 0.95
getFutureMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected