Ignore:
Timestamp:
2015-06-20T14:36:00+02:00 (6 years ago)
Author:
Don-vip
Message:

fix many checkstyle violations

Location:
trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/handler
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/handler/ImportHandlerTest.java

    r8193 r8509  
     1// License: GPL. For details, see LICENSE file.
    12package org.openstreetmap.josm.io.remotecontrol.handler;
     3
     4import static org.junit.Assert.assertThat;
    25
    36import org.hamcrest.CoreMatchers;
    47import org.junit.Test;
    5 
    6 import static org.junit.Assert.*;
    78
    89public class ImportHandlerTest {
     
    1415        req.setUrl("http://localhost:8111/import?url=http://localhost:8888/relations?relations=19711&mode=recursive");
    1516        assertThat(req.args.get("url"), CoreMatchers.is("http://localhost:8888/relations?relations=19711&mode=recursive"));
    16 
    1717    }
    18 
    1918}
  • trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/handler/RequestHandlerTest.java

    r8193 r8509  
     1// License: GPL. For details, see LICENSE file.
    12package org.openstreetmap.josm.io.remotecontrol.handler;
    23
    3 import org.junit.Test;
    4 import org.openstreetmap.josm.io.remotecontrol.PermissionPrefWithDefault;
     4import static org.hamcrest.CoreMatchers.is;
     5import static org.junit.Assert.assertThat;
    56
    67import java.util.Collections;
     
    89import java.util.Map;
    910
    10 import static org.hamcrest.CoreMatchers.is;
    11 import static org.junit.Assert.*;
     11import org.junit.Test;
     12import org.openstreetmap.josm.io.remotecontrol.PermissionPrefWithDefault;
    1213
    1314public class RequestHandlerTest {
     
    7071    @Test
    7172    public void testRequestParameter4() {
    72         assertThat(getRequestParameter("http://example.com/:@-._~!$&'()*+,=;:@-._~!$&'()*+,=:@-._~!$&'()*+,==?/?:@-._~!$'()*+,;=/?:@-._~!$'()*+,;==#/?:@-._~!$&'()*+,;="),
     73        assertThat(getRequestParameter(
     74                "http://example.com/:@-._~!$&'()*+,=;:@-._~!$&'()*+,=:@-._~!$&'()*+,==?/?:@-._~!$'()*+,;=/?:@-._~!$'()*+,;==#/?:@-._~!$&'()*+,;="),
    7375                is(Collections.singletonMap("/?:@-._~!$'()* ,;", "/?:@-._~!$'()* ,;==")));
    7476    }
     
    8284                is(expected));
    8385    }
    84 
    8586}
Note: See TracChangeset for help on using the changeset viewer.