null cap test
This commit is contained in:
parent
011137b23f
commit
9315c8aaba
1 changed files with 3 additions and 6 deletions
|
@ -104,12 +104,11 @@ public class TwoPartyTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testNullCap() {
|
public void testNullCap() throws ExecutionException, InterruptedException {
|
||||||
var server = new TwoPartyServer(new Capability.Client());
|
var server = new TwoPartyRpcSystem(this.serverNetwork, new Capability.Client());
|
||||||
server.listen(serverSocket);
|
|
||||||
var cap = this.client.bootstrap();
|
var cap = this.client.bootstrap();
|
||||||
var resolved = cap.whenResolved().toCompletableFuture();
|
var resolved = cap.whenResolved().toCompletableFuture();
|
||||||
resolved.join();
|
resolved.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -204,6 +203,4 @@ public class TwoPartyTest {
|
||||||
var cap2 = results.getResult2();
|
var cap2 = results.getResult2();
|
||||||
Assert.assertFalse(cap2.isNull());
|
Assert.assertFalse(cap2.isNull());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue