Search in sources :

Example 11 with TestLogHandler

use of com.google.common.testing.TestLogHandler in project guava by hceylan.

the class CacheLoadingTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    logHandler = new TestLogHandler();
    LocalCache.logger.addHandler(logHandler);
}
Also used : TestLogHandler(com.google.common.testing.TestLogHandler)

Example 12 with TestLogHandler

use of com.google.common.testing.TestLogHandler in project guava by hceylan.

the class LocalCacheTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    logHandler = new TestLogHandler();
    LocalCache.logger.addHandler(logHandler);
}
Also used : TestLogHandler(com.google.common.testing.TestLogHandler)

Aggregations

TestLogHandler (com.google.common.testing.TestLogHandler)12 Logger (java.util.logging.Logger)4 LogRecord (java.util.logging.LogRecord)2 IOException (java.io.IOException)1 Formatter (java.util.logging.Formatter)1