Changeset 11324 in josm for trunk/test/unit/org/openstreetmap/josm/tools/LoggingTest.java
- Timestamp:
- 2016-11-27T05:16:30+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/tools/LoggingTest.java
r10899 r11324 5 5 import static org.junit.Assert.assertEquals; 6 6 import static org.junit.Assert.assertFalse; 7 import static org.junit.Assert.assertNotNull; 7 8 import static org.junit.Assert.assertNull; 8 9 import static org.junit.Assert.assertTrue; … … 18 19 import org.junit.Test; 19 20 21 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 22 20 23 /** 21 24 * @author michael … … 73 76 } 74 77 78 @SuppressFBWarnings(value = "NP_NONNULL_PARAM_VIOLATION") 75 79 private void testLogCaptured(Level level, Consumer<String> expectedTester, Runnable printMessage) { 76 80 Logging.setLogLevel(level); … … 78 82 printMessage.run(); 79 83 84 assertNotNull(captured); 80 85 expectedTester.accept(captured.getMessage()); 81 86 assertEquals(level, captured.getLevel());
Note:
See TracChangeset
for help on using the changeset viewer.