Changeset 15013 in josm for trunk/test


Ignore:
Timestamp:
2019-04-22T15:00:55+02:00 (5 years ago)
Author:
Don-vip
Message:

remove duplicated code

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

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/command/RemoveNodesCommandTest.java

    r13079 r15013  
    5252    public void testExecute() {
    5353        RemoveNodesCommand command = new RemoveNodesCommand(testData.existingWay,
    54                 Collections.singletonList(testData.existingNode));
     54                Collections.singleton(testData.existingNode));
    5555
    5656        command.executeCommand();
     
    6767    public void testUndo() {
    6868        RemoveNodesCommand command = new RemoveNodesCommand(testData.existingWay,
    69                 Collections.singletonList(testData.existingNode));
     69                Collections.singleton(testData.existingNode));
    7070
    7171        command.executeCommand();
     
    9292        ArrayList<OsmPrimitive> added = new ArrayList<>();
    9393        RemoveNodesCommand command = new RemoveNodesCommand(testData.existingWay,
    94                 Collections.singletonList(testData.existingNode));
     94                Collections.singleton(testData.existingNode));
    9595        command.fillModifiedData(modified, deleted, added);
    9696        assertArrayEquals(new Object[] {testData.existingWay }, modified.toArray());
     
    105105    public void testGetParticipatingPrimitives() {
    106106        RemoveNodesCommand command = new RemoveNodesCommand(testData.existingWay,
    107                 Collections.singletonList(testData.existingNode));
     107                Collections.singleton(testData.existingNode));
    108108        command.executeCommand();
    109109        assertArrayEquals(new Object[] {testData.existingWay }, command.getParticipatingPrimitives().toArray());
     
    115115    @Test
    116116    public void testDescription() {
    117         assertTrue(new RemoveNodesCommand(testData.existingWay, Collections.singletonList(testData.existingNode))
     117        assertTrue(new RemoveNodesCommand(testData.existingWay, Collections.singleton(testData.existingNode))
    118118                .getDescriptionText().matches("Removed nodes from .*"));
    119119    }
  • trunk/test/unit/org/openstreetmap/josm/gui/io/UploadDialogTest.java

    r15010 r15013  
    280280     */
    281281    @Test
    282     public void testvalidateUploadTag() {
     282    public void testValidateUploadTag() {
    283283        doTestValidateUploadTag("upload.comment");
    284284        doTestValidateUploadTag("upload.source");
Note: See TracChangeset for help on using the changeset viewer.