Changeset 12802 in josm


Ignore:
Timestamp:
2017-09-09T16:10:32+02:00 (2 years ago)
Author:
Don-vip
Message:

see #14794 - checkstyle (unit tests)

Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmWriter.java

    r12800 r12802  
    131131
    132132    /**
    133      * Writes the full OSM file for the given layer (header, data sources, osm data).
     133     * Writes the full OSM file for the given layer (header, data sources, osm data, footer).
    134134     * @param layer OSM data layer
    135135     * @deprecated To be removed end of 2017. Use {@link #write(DataSet)} instead
     
    141141
    142142    /**
    143      * Writes the full OSM file for the given data set (header, data sources, osm data).
     143     * Writes the full OSM file for the given data set (header, data sources, osm data, footer).
    144144     * @param data OSM data set
    145145     * @since 12800
  • trunk/test/unit/org/openstreetmap/josm/tools/LoggingTest.java

    r11324 r12802  
    4545
    4646    /**
    47      * @throws java.lang.Exception
     47     * @throws SecurityException if a security error occurs
    4848     */
    4949    @Before
    50     public void setUp() throws Exception {
     50    public void setUp() throws SecurityException {
    5151        captured = null;
    5252        Logging.getLogger().addHandler(handler);
     
    5454
    5555    /**
    56      * @throws java.lang.Exception
     56     * @throws SecurityException if a security error occurs
    5757     */
    5858    @After
    59     public void tearDown() throws Exception {
     59    public void tearDown() throws SecurityException {
    6060        Logging.getLogger().removeHandler(handler);
    6161    }
     
    213213
    214214    /**
    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)}.
    216216     */
    217217    @Test
  • trunk/test/unit/org/openstreetmap/josm/tools/OsmUrlToBoundsTest.java

    r12620 r12802  
    2727    @Test
    2828    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),
    3030                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),
    3232                OsmUrlToBounds.positionToBounds(40.86215, -75.75020, 18));
    3333    }
  • trunk/test/unit/org/openstreetmap/josm/tools/PlatformHookOsxTest.java

    r12670 r12802  
    3737    @Test
    3838    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"));
    4040    }
    4141
  • trunk/test/unit/org/openstreetmap/josm/tools/PlatformHookWindowsTest.java

    r12670 r12802  
    4444    @Test
    4545    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"));
    4747    }
    4848
  • trunk/test/unit/org/openstreetmap/josm/tools/RotationAngleTest.java

    r12756 r12802  
    55
    66import org.junit.Test;
    7 import org.openstreetmap.josm.tools.RotationAngle;
    87
    98/**
  • trunk/test/unit/org/openstreetmap/josm/tools/TerritoriesTest.java

    r12545 r12802  
    4040    }
    4141
    42     private static void check(String name, LatLon ll, String ... expectedCodes) {
     42    private static void check(String name, LatLon ll, String... expectedCodes) {
    4343        for (String e : expectedCodes) {
    4444            assertTrue(name + " " + e, Territories.isIso3166Code(e, ll));
  • trunk/test/unit/org/openstreetmap/josm/tools/bugreport/BugReportExceptionHandlerTest.java

    r10886 r12802  
    2828    public void testHandleException() throws InterruptedException {
    2929        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        });
    3133        BugReportExceptionHandler.handleException(new Exception("testHandleException"));
    3234        latch.await();
Note: See TracChangeset for help on using the changeset viewer.