}
};
try
{
new NettyConnector(params,
null,
listener,
Executors.newCachedThreadPool(),
Executors.newCachedThreadPool(),
Executors.newScheduledThreadPool(5));
Assert.fail("Should throw Exception");
}
catch (IllegalArgumentException e)
{
// Ok
}
try
{
new NettyConnector(params,
handler,
null,
Executors.newCachedThreadPool(),
Executors.newCachedThreadPool(),
Executors.newScheduledThreadPool(5));