use of com.yahoo.container.logging.AccessLog in project vespa by vespa-engine.
the class ServletAccessLoggingTest method accessLogIsInvokedForJDiscServlet.
@Test
public void accessLogIsInvokedForJDiscServlet() throws Exception {
final AccessLog accessLog = mock(AccessLog.class);
final TestDriver testDriver = newTestDriver(accessLog);
testDriver.client().newGet("/status.html").execute();
verifyCallsLog(accessLog, timeout(MAX_LOG_WAIT_TIME_MILLIS).times(1));
}
use of com.yahoo.container.logging.AccessLog in project vespa by vespa-engine.
the class LoggingRequestHandlerTestCase method setUp.
@Before
public void setUp() throws Exception {
accessLogging = new StartTimePusher();
ComponentRegistry<AccessLogInterface> implementers = new ComponentRegistry<>();
implementers.register(new ComponentId("nalle"), accessLogging);
implementers.freeze();
executor = Executors.newCachedThreadPool();
handler = new AccessLogTestHandler(executor, new AccessLog(implementers));
}
use of com.yahoo.container.logging.AccessLog in project vespa by vespa-engine.
the class ServletAccessLoggingTest method accessLogIsInvokedForNonJDiscServlet.
@Test
public void accessLogIsInvokedForNonJDiscServlet() throws Exception {
final AccessLog accessLog = mock(AccessLog.class);
final TestDriver testDriver = newTestDriver(accessLog);
httpGet(testDriver, TestServlet.PATH).execute();
verifyCallsLog(accessLog, timeout(MAX_LOG_WAIT_TIME_MILLIS).times(1));
}
Aggregations