Changeset 12802 in josm for trunk/test/unit
- Timestamp:
- 2017-09-09T16:10:32+02:00 (7 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/tools
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/tools/LoggingTest.java
r11324 r12802 45 45 46 46 /** 47 * @throws java.lang.Exception47 * @throws SecurityException if a security error occurs 48 48 */ 49 49 @Before 50 public void setUp() throws Exception {50 public void setUp() throws SecurityException { 51 51 captured = null; 52 52 Logging.getLogger().addHandler(handler); … … 54 54 55 55 /** 56 * @throws java.lang.Exception56 * @throws SecurityException if a security error occurs 57 57 */ 58 58 @After 59 public void tearDown() throws Exception {59 public void tearDown() throws SecurityException { 60 60 Logging.getLogger().removeHandler(handler); 61 61 } … … 213 213 214 214 /** 215 * Test method for {@link org.openstreetmap.josm.tools.Logging#logWithStackTrace(java.util.logging.Level, java.lang.String, java.lang.Throwable)}.215 * Test method for {@link Logging#logWithStackTrace(Level, String, Throwable)}. 216 216 */ 217 217 @Test -
trunk/test/unit/org/openstreetmap/josm/tools/OsmUrlToBoundsTest.java
r12620 r12802 27 27 @Test 28 28 public void testPositionToBounds() { 29 Assert.assertEquals(new Bounds(51.7167359, 8.7573485,51.720724,8.7659315),29 Assert.assertEquals(new Bounds(51.7167359, 8.7573485, 51.720724, 8.7659315), 30 30 OsmUrlToBounds.positionToBounds(51.71873, 8.76164, 17)); 31 Assert.assertEquals(new Bounds(40.8609329, -75.7523458,40.8633671,-75.7480542),31 Assert.assertEquals(new Bounds(40.8609329, -75.7523458, 40.8633671, -75.7480542), 32 32 OsmUrlToBounds.positionToBounds(40.86215, -75.75020, 18)); 33 33 } -
trunk/test/unit/org/openstreetmap/josm/tools/PlatformHookOsxTest.java
r12670 r12802 37 37 @Test 38 38 public void testStartupHook() { 39 hook.startupHook((a, b,c,d) -> System.out.println("callback"));39 hook.startupHook((a, b, c, d) -> System.out.println("callback")); 40 40 } 41 41 -
trunk/test/unit/org/openstreetmap/josm/tools/PlatformHookWindowsTest.java
r12670 r12802 44 44 @Test 45 45 public void testStartupHook() { 46 hook.startupHook((a, b,c,d) -> System.out.println("callback"));46 hook.startupHook((a, b, c, d) -> System.out.println("callback")); 47 47 } 48 48 -
trunk/test/unit/org/openstreetmap/josm/tools/RotationAngleTest.java
r12756 r12802 5 5 6 6 import org.junit.Test; 7 import org.openstreetmap.josm.tools.RotationAngle;8 7 9 8 /** -
trunk/test/unit/org/openstreetmap/josm/tools/TerritoriesTest.java
r12545 r12802 40 40 } 41 41 42 private static void check(String name, LatLon ll, String 42 private static void check(String name, LatLon ll, String... expectedCodes) { 43 43 for (String e : expectedCodes) { 44 44 assertTrue(name + " " + e, Territories.isIso3166Code(e, ll)); -
trunk/test/unit/org/openstreetmap/josm/tools/bugreport/BugReportExceptionHandlerTest.java
r10886 r12802 28 28 public void testHandleException() throws InterruptedException { 29 29 CountDownLatch latch = new CountDownLatch(1); 30 BugReportQueue.getInstance().addBugReportHandler(e -> {latch.countDown(); return false;}); 30 BugReportQueue.getInstance().addBugReportHandler(e -> { 31 latch.countDown(); return false; 32 }); 31 33 BugReportExceptionHandler.handleException(new Exception("testHandleException")); 32 34 latch.await();
Note:
See TracChangeset
for help on using the changeset viewer.