use of org.zeromq.SelectorProviderTest.DefaultSelectorProviderChooser in project jeromq by zeromq.
the class OptionsTest method testSelectorObject.
@Test(timeout = 5000)
public void testSelectorObject() {
try (ZContext ctx = new ZContext();
Socket socket = ctx.createSocket(SocketType.PUB)) {
SelectorProviderChooser chooser = new DefaultSelectorProviderChooser();
socket.setSelectorChooser(chooser);
Assert.assertEquals(chooser, socket.getSelectorProviderChooser());
}
}
Aggregations