use of io.vertx.test.netty.TestLoggerFactory in project vert.x by eclipse.
the class DatagramTest method testSendLogging.
@Test
public void testSendLogging() throws Exception {
TestLoggerFactory factory = testLogging(new DatagramSocketOptions().setLogActivity(true), new DatagramSocketOptions());
assertTrue(factory.hasName("io.netty.handler.logging.LoggingHandler"));
}
use of io.vertx.test.netty.TestLoggerFactory in project vert.x by eclipse.
the class DNSTest method testLogActivity.
@Test
public void testLogActivity() throws Exception {
TestLoggerFactory factory = testLogging(new DnsClientOptions().setLogActivity(true));
assertTrue(factory.hasName("io.netty.handler.logging.LoggingHandler"));
}
use of io.vertx.test.netty.TestLoggerFactory in project vert.x by eclipse.
the class HttpTest method testServerLogging.
@Test
public void testServerLogging() throws Exception {
server.close();
server = vertx.createHttpServer(createBaseServerOptions().setLogActivity(true));
TestLoggerFactory factory = testLogging();
if (this instanceof Http1xTest) {
assertTrue(factory.hasName("io.netty.handler.logging.LoggingHandler"));
} else {
assertTrue(factory.hasName("io.netty.handler.codec.http2.Http2FrameLogger"));
}
}
use of io.vertx.test.netty.TestLoggerFactory in project vert.x by eclipse.
the class NetTest method testClientLogging.
@Test
public void testClientLogging() throws Exception {
client.close();
client = vertx.createNetClient(new NetClientOptions().setLogActivity(true));
TestLoggerFactory factory = testLogging();
assertTrue(factory.hasName("io.netty.handler.logging.LoggingHandler"));
}
Aggregations