source: josm/trunk/test/functional/org/openstreetmap/josm/gui/dialogs/ConflictResolutionDialogTest.java@ 8540

Last change on this file since 8540 was 8514, checked in by Don-vip, 9 years ago

checkstyle: various checks

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.dialogs;
3
4import javax.swing.JFrame;
5
6import org.junit.Ignore;
7import org.openstreetmap.josm.data.conflict.Conflict;
8import org.openstreetmap.josm.data.osm.Node;
9import org.openstreetmap.josm.data.osm.OsmPrimitive;
10import org.openstreetmap.josm.data.osm.Way;
11
12@Ignore
13public class ConflictResolutionDialogTest extends JFrame {
14
15 private ConflictResolutionDialog dialog;
16
17 protected void build() {
18 setSize(100, 100);
19 dialog = new ConflictResolutionDialog(this);
20 dialog.setSize(600, 600);
21 }
22
23 protected void populate() {
24 Way w1 = new Way(1);
25 w1.addNode(new Node(10));
26 w1.addNode(new Node(11));
27
28 Way w2 = new Way(1);
29 w2.addNode(new Node(10));
30 w2.addNode(new Node(11));
31
32 dialog.getConflictResolver().populate(new Conflict<OsmPrimitive>(w1, w2));
33 }
34
35 public void showDialog() {
36 dialog.setVisible(true);
37 }
38
39 /**
40 * Constructs a new {@code ConflictResolutionDialogTest}.
41 */
42 public ConflictResolutionDialogTest() {
43 build();
44 }
45
46 public static void main(String[] args) {
47 ConflictResolutionDialogTest test = new ConflictResolutionDialogTest();
48 test.setVisible(true);
49 test.populate();
50 test.showDialog();
51 }
52}
Note: See TracBrowser for help on using the repository browser.