Changeset 8450 in josm for trunk/test/unit/org/openstreetmap/josm/gui
- Timestamp:
- 2015-06-03T01:27:41+02:00 (10 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/DefaultNameFormatterTest.java
r7937 r8450 3 3 4 4 import static org.hamcrest.CoreMatchers.is; 5 import static org.junit.Assert.assertSame; 5 6 import static org.junit.Assert.assertThat; 6 import static org.junit.Assert.assertTrue;7 7 8 8 import java.io.FileInputStream; … … 67 67 System.out.println("p3: "+DefaultNameFormatter.getInstance().format(p3)+" - "+p3); // route(lcn Sal Salier-Radweg(412 members) 68 68 69 assert True(comparator.compare(p1, p2) ==-1); // p1 < p270 assert True(comparator.compare(p2, p1) ==1); // p2 > p169 assertSame(comparator.compare(p1, p2), -1); // p1 < p2 70 assertSame(comparator.compare(p2, p1), 1); // p2 > p1 71 71 72 assert True(comparator.compare(p1, p3) ==-1); // p1 < p373 assert True(comparator.compare(p3, p1) ==1); // p3 > p174 assert True(comparator.compare(p2, p3) ==1); // p2 > p375 assert True(comparator.compare(p3, p2) ==-1); // p3 < p272 assertSame(comparator.compare(p1, p3), -1); // p1 < p3 73 assertSame(comparator.compare(p3, p1), 1); // p3 > p1 74 assertSame(comparator.compare(p2, p3), 1); // p2 > p3 75 assertSame(comparator.compare(p3, p2), -1); // p3 < p2 76 76 77 77 Relation[] relations = new ArrayList<>(ds.getRelations()).toArray(new Relation[0]); -
trunk/test/unit/org/openstreetmap/josm/gui/conflict/nodes/NodeListMergeModelTest.java
r8391 r8450 5 5 import static org.fest.reflect.core.Reflection.method; 6 6 import static org.junit.Assert.assertEquals; 7 import static org.junit.Assert.assertFalse; 7 8 import static org.junit.Assert.assertTrue; 8 9 import static org.junit.Assert.fail; … … 697 698 698 699 model.setFrozen(false); 699 assert True(!model.isFrozen());700 assertFalse(model.isFrozen()); 700 701 } 701 702 -
trunk/test/unit/org/openstreetmap/josm/gui/tagging/PresetClassificationsTest.java
r7937 r8450 2 2 package org.openstreetmap.josm.gui.tagging; 3 3 4 import static org.junit.Assert.assertFalse; 4 5 import static org.junit.Assert.assertTrue; 5 6 … … 54 55 w.addNode(new Node()); 55 56 w.addNode(new Node()); 56 assert True("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")); 57 58 w.addNode(n1); 58 59 assertTrue("closed way should match building preset", getMatchingPresetNames("building", w).contains("Building")); … … 64 65 assertTrue("railway=tram should match 'Railway Route' for relation creation", getMatchingPresetNames("route", tram).contains("Railway Route")); 65 66 assertTrue("railway=tram should match 'Public Transport Route' for relation creation", getMatchingPresetNames("route", tram).contains("Public Transport Route")); 66 assert True("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")); 67 68 } 68 69 }
Note:
See TracChangeset
for help on using the changeset viewer.