- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for getStoredLogRecords (0.15 sec)
-
guava-testlib/src/com/google/common/testing/TestLogHandler.java
* SomeClass.logger.removeHandler(handler); * } * }); * } * * public void test() { * SomeClass.foo(); * LogRecord firstRecord = handler.getStoredLogRecords().get(0); * assertEquals("some message", firstRecord.getMessage()); * } * </pre> * * @author Kevin Bourrillion * @since 10.0 */ @GwtCompatible @ElementTypesAreNonnullByDefault
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 21 20:53:25 UTC 2024 - 2.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/TestLogHandler.java
* SomeClass.logger.removeHandler(handler); * } * }); * } * * public void test() { * SomeClass.foo(); * LogRecord firstRecord = handler.getStoredLogRecords().get(0); * assertEquals("some message", firstRecord.getMessage()); * } * </pre> * * @author Kevin Bourrillion * @since 10.0 */ @GwtCompatible @ElementTypesAreNonnullByDefault
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 21 20:53:25 UTC 2024 - 2.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java
new Formatter() { @Override public String format(LogRecord record) { return formatMessage(record); } }; for (LogRecord record : logHandler.getStoredLogRecords()) { assertThat(logFormatter.format(record)).doesNotContain("NoOpService"); } } public void testStartupFailureOutput() { Logger logger = Logger.getLogger(ServiceManager.class.getName());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:51:36 UTC 2024 - 25.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java
if (!result.isCancelled()) { result.get(10, SECONDS); } // TODO(cpovirk): Verify that the cancelled futures are exactly ones that we expect. } assertThat(logHandler.getStoredLogRecords()).isEmpty(); } public void testAvoidsStackOverflow_manySubmitted() throws Exception { final SettableFuture<@Nullable Void> settableFuture = SettableFuture.create();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 16.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java
if (!result.isCancelled()) { result.get(10, SECONDS); } // TODO(cpovirk): Verify that the cancelled futures are exactly ones that we expect. } assertThat(logHandler.getStoredLogRecords()).isEmpty(); } public void testAvoidsStackOverflow_manySubmitted() throws Exception { final SettableFuture<@Nullable Void> settableFuture = SettableFuture.create();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 16.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/LocalCacheTest.java
private Throwable popLoggedThrowable() { List<LogRecord> logRecords = logHandler.getStoredLogRecords(); assertEquals(1, logRecords.size()); LogRecord logRecord = logRecords.get(0); logHandler.clear(); return logRecord.getThrown(); } private void checkNothingLogged() { assertTrue(logHandler.getStoredLogRecords().isEmpty()); } private void checkLogged(Throwable t) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 110.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/LocalCacheTest.java
private Throwable popLoggedThrowable() { List<LogRecord> logRecords = logHandler.getStoredLogRecords(); assertEquals(1, logRecords.size()); LogRecord logRecord = logRecords.get(0); logHandler.clear(); return logRecord.getThrown(); } private void checkNothingLogged() { assertTrue(logHandler.getStoredLogRecords().isEmpty()); } private void checkLogged(Throwable t) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 112.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java
} private Throwable popLoggedThrowable() { List<LogRecord> logRecords = logHandler.getStoredLogRecords(); assertEquals(1, logRecords.size()); LogRecord logRecord = logRecords.get(0); logHandler.clear(); return logRecord.getThrown(); } private void checkNothingLogged() { assertThat(logHandler.getStoredLogRecords()).isEmpty(); } private void checkLoggedCause(Throwable t) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 86.3K bytes - Viewed (0)