Ignore:
Timestamp:
2015-06-03T01:27:41+02:00 (6 years ago)
Author:
Don-vip
Message:

unit tests - simplify assertions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/tagging/PresetClassificationsTest.java

    r7937 r8450  
    22package org.openstreetmap.josm.gui.tagging;
    33
     4import static org.junit.Assert.assertFalse;
    45import static org.junit.Assert.assertTrue;
    56
     
    5455        w.addNode(new Node());
    5556        w.addNode(new Node());
    56         assertTrue("unclosed way should not match building preset", !getMatchingPresetNames("building", w).contains("Building"));
     57        assertFalse("unclosed way should not match building preset", getMatchingPresetNames("building", w).contains("Building"));
    5758        w.addNode(n1);
    5859        assertTrue("closed way should match building preset", getMatchingPresetNames("building", w).contains("Building"));
     
    6465        assertTrue("railway=tram should match 'Railway Route' for relation creation", getMatchingPresetNames("route", tram).contains("Railway Route"));
    6566        assertTrue("railway=tram should match 'Public Transport Route' for relation creation", getMatchingPresetNames("route", tram).contains("Public Transport Route"));
    66         assertTrue("railway=tram should not match 'Bus route'", !getMatchingPresetNames("route", tram).contains("Bus route"));
     67        assertFalse("railway=tram should not match 'Bus route'", getMatchingPresetNames("route", tram).contains("Bus route"));
    6768    }
    6869}
Note: See TracChangeset for help on using the changeset viewer.