use of io.vertx.test.netty.TestLoggerFactory in project vert.x by eclipse.
the class DNSTest method testDoNotLogActivity.
@Test
public void testDoNotLogActivity() throws Exception {
TestLoggerFactory factory = testLogging(new DnsClientOptions().setLogActivity(false));
assertFalse(factory.hasName("io.netty.handler.logging.LoggingHandler"));
}
use of io.vertx.test.netty.TestLoggerFactory in project vert.x by eclipse.
the class NetTest method testNoLogging.
@Test
public void testNoLogging() throws Exception {
TestLoggerFactory factory = testLogging();
assertFalse(factory.hasName("io.netty.handler.logging.LoggingHandler"));
}
use of io.vertx.test.netty.TestLoggerFactory in project vert.x by eclipse.
the class HttpTest method testClientLogging.
@Test
public void testClientLogging() throws Exception {
client.close();
client = vertx.createHttpClient(createBaseClientOptions().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 HttpTest method testNoLogging.
@Test
public void testNoLogging() throws Exception {
TestLoggerFactory factory = testLogging();
assertFalse(factory.hasName("io.netty.handler.codec.http2.Http2FrameLogger"));
}
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"));
}
}
Aggregations