use of java.nio.channels.AsynchronousServerSocketChannel in project j2objc by google.
the class AsynchronousServerSocketChannelTest method test_completionHandlerAccept_npe.
public void test_completionHandlerAccept_npe() throws Throwable {
AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open();
assc.bind(new InetSocketAddress(0));
try {
assc.accept(null, /* attachment */
null);
fail();
} catch (NullPointerException expected) {
}
assc.close();
}
Aggregations