Searched refs:logHandler (Results 1 – 7 of 7) sorted by relevance
257 TestLogHandler logHandler = new TestLogHandler(); in testCopyExceptions() local258 Closeables.logger.addHandler(logHandler); in testCopyExceptions()262 assertTrue(logHandler.getStoredLogRecords().isEmpty()); in testCopyExceptions()265 assertEquals((in == BROKEN_OPEN_SOURCE) ? 0 : 1, getAndResetRecords(logHandler)); in testCopyExceptions()270 assertTrue(logHandler.getStoredLogRecords().isEmpty()); in testCopyExceptions()273 assertEquals(1, getAndResetRecords(logHandler)); in testCopyExceptions()279 assertTrue(getAndResetRecords(logHandler) <= 1); in testCopyExceptions()283 Closeables.logger.removeHandler(logHandler); in testCopyExceptions()313 private static int getAndResetRecords(TestLogHandler logHandler) { in getAndResetRecords() argument314 int records = logHandler.getStoredLogRecords().size(); in getAndResetRecords()[all …]
333 TestLogHandler logHandler = new TestLogHandler(); in testCopyExceptions() local334 Closeables.logger.addHandler(logHandler); in testCopyExceptions()338 assertTrue(logHandler.getStoredLogRecords().isEmpty()); in testCopyExceptions()341 assertEquals((in == BROKEN_OPEN_SOURCE) ? 0 : 1, getAndResetRecords(logHandler)); in testCopyExceptions()346 assertTrue(logHandler.getStoredLogRecords().isEmpty()); in testCopyExceptions()349 assertEquals(1, getAndResetRecords(logHandler)); in testCopyExceptions()355 assertTrue(getAndResetRecords(logHandler) <= 1); in testCopyExceptions()359 Closeables.logger.removeHandler(logHandler); in testCopyExceptions()389 private static int getAndResetRecords(TestLogHandler logHandler) { in getAndResetRecords() argument390 int records = logHandler.getStoredLogRecords().size(); in getAndResetRecords()[all …]
293 TestLogHandler logHandler = new TestLogHandler(); in testLoggingSuppressor() local295 Closeables.logger.addHandler(logHandler); in testLoggingSuppressor()305 assertTrue(logHandler.getStoredLogRecords().isEmpty()); in testLoggingSuppressor()309 assertEquals(2, logHandler.getStoredLogRecords().size()); in testLoggingSuppressor()311 LogRecord record = logHandler.getStoredLogRecords().get(0); in testLoggingSuppressor()314 record = logHandler.getStoredLogRecords().get(1); in testLoggingSuppressor()317 Closeables.logger.removeHandler(logHandler); in testLoggingSuppressor()
310 TestLogHandler logHandler = new TestLogHandler(); in testEmptyServiceManager() local311 logger.addHandler(logHandler); in testEmptyServiceManager()334 for (LogRecord record : logHandler.getStoredLogRecords()) { in testEmptyServiceManager()402 TestLogHandler logHandler = new TestLogHandler(); in testPartiallyConstructedManager() local403 logger.addHandler(logHandler); in testPartiallyConstructedManager()412 assertEquals(0, logHandler.getStoredLogRecords().size()); in testPartiallyConstructedManager()
92 private TestLogHandler logHandler = new TestLogHandler(); field in CallTest98 logHandler = new TestLogHandler(); in setUp()101 logger.addHandler(logHandler); in setUp()106 logger.removeHandler(logHandler); in tearDown()589 logHandler.take()); in exceptionThrownByOnResponseIsRedactedAndLogged()
65 TestLogHandler logHandler; field in CacheLoadingTest70 logHandler = new TestLogHandler(); in setUp()71 LocalCache.logger.addHandler(logHandler); in setUp()79 LocalCache.logger.removeHandler(logHandler); in tearDown()83 List<LogRecord> logRecords = logHandler.getStoredLogRecords(); in popLoggedThrowable()86 logHandler.clear(); in popLoggedThrowable()91 assertTrue(logHandler.getStoredLogRecords().isEmpty()); in checkNothingLogged()
108 TestLogHandler logHandler; field in LocalCacheTest113 logHandler = new TestLogHandler(); in setUp()114 LocalCache.logger.addHandler(logHandler); in setUp()120 LocalCache.logger.removeHandler(logHandler); in tearDown()124 List<LogRecord> logRecords = logHandler.getStoredLogRecords(); in popLoggedThrowable()127 logHandler.clear(); in popLoggedThrowable()132 assertTrue(logHandler.getStoredLogRecords().isEmpty()); in checkNothingLogged()