Changeset 9607 in josm for trunk/test/unit
- Timestamp:
- 2016-01-24T04:05:06+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/dialogs/ConflictDialogTest.java
r9601 r9607 6 6 7 7 import java.awt.Color; 8 import java.awt.image.BufferedImage; 8 9 9 10 import org.junit.BeforeClass; 10 11 import org.junit.Test; 11 12 import org.openstreetmap.josm.JOSMFixture; 13 import org.openstreetmap.josm.Main; 14 import org.openstreetmap.josm.data.osm.Node; 15 import org.openstreetmap.josm.data.osm.Relation; 16 import org.openstreetmap.josm.data.osm.RelationMember; 17 import org.openstreetmap.josm.data.osm.Way; 18 import org.openstreetmap.josm.gui.dialogs.ConflictDialog.ConflictPainter; 12 19 13 20 /** … … 39 46 assertEquals(Color.gray, ConflictDialog.getColor()); 40 47 } 48 49 /** 50 * Unit tests of {@link ConflictPainter} class. 51 */ 52 @Test 53 public void testConflictPainter() { 54 ConflictPainter cp = new ConflictPainter(Main.map.mapView, new BufferedImage(800, 600, BufferedImage.TYPE_3BYTE_BGR).createGraphics()); 55 Node n1 = new Node(1, 1); 56 Node n2 = new Node(2, 1); 57 Way w = new Way(1, 1); 58 w.addNode(n1); 59 w.addNode(n2); 60 Relation r = new Relation(1, 1); 61 r.addMember(new RelationMember("outer", w)); 62 cp.visit(n1); 63 cp.visit(n2); 64 cp.visit(w); 65 cp.visit(r); 66 } 41 67 }
Note:
See TracChangeset
for help on using the changeset viewer.