Ignore:
Timestamp:
2015-10-14T23:35:44+02:00 (6 years ago)
Author:
Don-vip
Message:

cleanup unit tests

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

    r8857 r8876  
    22package org.openstreetmap.josm.io.remotecontrol.handler;
    33
    4 import static org.junit.Assert.assertThat;
     4import static org.junit.Assert.assertEquals;
    55
    6 import org.hamcrest.CoreMatchers;
    76import org.junit.Test;
    87
     
    1211public class ImportHandlerTest {
    1312
     13    /**
     14     * Non-regression test for bug #7434.
     15     */
    1416    @Test
    15     public void test7434() throws Exception {
    16 
     17    public void testTicket7434() {
    1718        final ImportHandler req = new ImportHandler();
    1819        req.setUrl("http://localhost:8111/import?url=http://localhost:8888/relations?relations=19711&mode=recursive");
    19         assertThat(req.args.get("url"), CoreMatchers.is("http://localhost:8888/relations?relations=19711&mode=recursive"));
     20        assertEquals("http://localhost:8888/relations?relations=19711&mode=recursive", req.args.get("url"));
    2021    }
    2122}
  • trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/handler/RequestHandlerTest.java

    r8857 r8876  
    4545    }
    4646
     47    /**
     48     * Test request parameter - case 1
     49     */
    4750    @Test
    4851    public void testRequestParameter1() {
     
    5356    }
    5457
     58    /**
     59     * Test request parameter - case 2
     60     */
    5561    @Test
    56     public void testRequestParameter12() {
     62    public void testRequestParameter2() {
    5763        assertEquals(Collections.singletonMap("query", "a&b==c"),
    5864                getRequestParameter("http://example.com/?query=a%26b==c"));
    5965    }
    6066
     67    /**
     68     * Test request parameter - case 3
     69     */
    6170    @Test
    6271    public void testRequestParameter3() {
     
    6675
    6776    /**
     77     * Test request parameter - case 4
    6878     * @see <a href="http://blog.lunatech.com/2009/02/03/what-every-web-developer-must-know-about-url-encoding">
    6979     *      What every web developer must know about URL encoding</a>
     
    7787    }
    7888
     89    /**
     90     * Test request parameter - case 5
     91     */
    7992    @Test
    8093    public void testRequestParameter5() {
Note: See TracChangeset for help on using the changeset viewer.