Changeset 10743 in josm for trunk/test
- Timestamp:
- 2016-08-06T01:12:07+02:00 (8 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/TagCheckerTest.java
r9382 r10743 3 3 4 4 import static org.junit.Assert.assertEquals; 5 import static org.junit.Assert.assertFalse; 5 6 import static org.junit.Assert.assertTrue; 6 7 … … 50 51 assertEquals("Misspelled property key", errors.get(0).getMessage()); 51 52 assertEquals("Key 'Name' looks like 'name'.", errors.get(0).getDescription()); 52 assert Equals(true,errors.get(0).isFixable());53 assertTrue(errors.get(0).isFixable()); 53 54 } 54 55 … … 63 64 assertEquals("Misspelled property key", errors.get(0).getMessage()); 64 65 assertEquals("Key 'landuse;' looks like 'landuse'.", errors.get(0).getDescription()); 65 assert Equals(true,errors.get(0).isFixable());66 assertTrue(errors.get(0).isFixable()); 66 67 } 67 68 … … 77 78 assertEquals("Misspelled property key", errors.get(0).getMessage()); 78 79 assertEquals("Key 'Brand' looks like 'brand'.", errors.get(0).getDescription()); 79 assert Equals(false,errors.get(0).isFixable());80 assertFalse(errors.get(0).isFixable()); 80 81 } 81 82 -
trunk/test/unit/org/openstreetmap/josm/gui/correction/RoleCorrectionTableTest.java
r10133 r10743 62 62 assertEquals("foo", model.getValueAt(0, 1)); 63 63 assertEquals("bar", model.getValueAt(0, 2)); 64 assert Equals(Boolean.TRUE,model.getValueAt(0, 3));64 assertTrue((Boolean) model.getValueAt(0, 3)); 65 65 assertNull(model.getValueAt(0, 4)); 66 66 model.setValueAt("", 0, 0); 67 67 assertEquals("relation (0, 1 member)", model.getValueAt(0, 0)); 68 68 model.setValueAt("", 0, 3); 69 assert Equals(Boolean.TRUE,model.getValueAt(0, 3));69 assertTrue((Boolean) model.getValueAt(0, 3)); 70 70 model.setValueAt(Boolean.FALSE, 0, 3); 71 assert Equals(Boolean.FALSE,model.getValueAt(0, 3));71 assertFalse((Boolean) model.getValueAt(0, 3)); 72 72 RoleCorrection[] array = new RoleCorrection[15]; 73 73 Arrays.fill(array, rc); -
trunk/test/unit/org/openstreetmap/josm/gui/correction/TagCorrectionTableTest.java
r10133 r10743 67 67 assertEquals("foo", model.getValueAt(0, 2)); 68 68 assertEquals("baz", model.getValueAt(0, 3)); 69 assert Equals(Boolean.TRUE,model.getValueAt(0, 4));69 assertTrue((Boolean) model.getValueAt(0, 4)); 70 70 assertNull(model.getValueAt(0, 5)); 71 71 assertEquals("bar", model.getValueAt(1, 0)); … … 73 73 assertEquals("baz", model.getValueAt(1, 2)); 74 74 assertEquals("foo", model.getValueAt(1, 3)); 75 assert Equals(Boolean.TRUE,model.getValueAt(1, 4));75 assertTrue((Boolean) model.getValueAt(1, 4)); 76 76 assertNull(model.getValueAt(1, 5)); 77 77 model.setValueAt("", 0, 0); 78 78 assertEquals("foo", model.getValueAt(0, 0)); 79 79 model.setValueAt("", 0, 4); 80 assert Equals(Boolean.TRUE,model.getValueAt(0, 4));80 assertTrue((Boolean) model.getValueAt(0, 4)); 81 81 model.setValueAt(Boolean.FALSE, 0, 4); 82 assert Equals(Boolean.FALSE,model.getValueAt(0, 4));82 assertFalse((Boolean) model.getValueAt(0, 4)); 83 83 TagCorrection[] array = new TagCorrection[15]; 84 84 Arrays.fill(array, tc1);
Note:
See TracChangeset
for help on using the changeset viewer.