Changeset 8876 in josm for trunk/test/unit/org/openstreetmap/josm/actions
- Timestamp:
- 2015-10-14T23:35:44+02:00 (9 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/actions
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/actions/CopyActionTest.java
r8857 r8876 26 26 } 27 27 28 /** 29 * Test of {@link CopyAction#getCopyString} method for a single way. 30 */ 28 31 @Test 29 public void testCopyStringWay() throws Exception{32 public void testCopyStringWay() { 30 33 final Way way = new Way(123L); 31 34 assertEquals("way 123", CopyAction.getCopyString(Collections.singleton(way))); 32 35 } 33 36 37 /** 38 * Test of {@link CopyAction#getCopyString} method for a way and a relation. 39 */ 34 40 @Test 35 public void testCopyStringWayRelation() throws Exception{41 public void testCopyStringWayRelation() { 36 42 final Way way = new Way(123L); 37 43 final Relation relation = new Relation(456); -
trunk/test/unit/org/openstreetmap/josm/actions/CreateCircleActionTest.java
r8857 r8876 4 4 import static org.junit.Assert.assertSame; 5 5 import static org.junit.Assert.assertTrue; 6 import static org.junit.Assert.fail; 6 7 7 8 import java.awt.geom.Area; … … 50 51 * I don't know why, but in other tests there are no problem to add selected primitives 51 52 * but in this case there is a problem with an even listener of selection change. 53 * @param p primitive 54 * @param ds data set 52 55 */ 53 56 public void addSelected(OsmPrimitive p, DataSet ds) { … … 60 63 } catch (Exception e) { 61 64 e.printStackTrace(); 62 assertTrue("Can't add OsmPrimitive to dataset", false);65 fail("Can't add OsmPrimitive to dataset: " + e.getMessage()); 63 66 } 64 67 } … … 162 165 } catch (Exception e) { 163 166 e.printStackTrace(); 164 assertTrue("Impossible to mock left/right hand database", false);167 fail("Impossible to mock left/right hand database: " + e.getMessage()); 165 168 } 166 169 -
trunk/test/unit/org/openstreetmap/josm/actions/SplitWayActionTest.java
r8857 r8876 42 42 */ 43 43 @Test 44 public void test 11184() throws Exception{44 public void testTicket11184() { 45 45 DataSet dataSet = new DataSet(); 46 46 OsmDataLayer layer = new OsmDataLayer(dataSet, OsmDataLayer.createNewName(), null);
Note:
See TracChangeset
for help on using the changeset viewer.