Changeset 11132 in josm for trunk/test/unit/org
- Timestamp:
- 2016-10-15T21:45:25+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/dialogs/validator/ValidatorTreePanelTest.java
r11129 r11132 9 9 import java.util.Arrays; 10 10 import java.util.Collections; 11 import java.util.Enumeration; 11 12 import java.util.HashSet; 12 13 import java.util.Set; … … 47 48 .build(), 48 49 TestError.builder(null, Severity.WARNING, 0) 49 .message("warn") 50 .message("warn", "foo") 51 .primitives(new Node(2)) 52 .build(), 53 TestError.builder(null, Severity.WARNING, 0) 54 .message("warn", "bar") 50 55 .primitives(new Node(2)) 51 56 .build()))); 52 57 assertNotNull(vtp); 53 assertEquals(2, vtp.getErrors().size()); 58 final Enumeration nodes = vtp.getRoot().breadthFirstEnumeration(); 59 assertEquals("", nodes.nextElement().toString()); 60 assertEquals("Errors (1)", nodes.nextElement().toString()); 61 assertEquals("Warnings (2)", nodes.nextElement().toString()); 62 assertEquals("err (1)", nodes.nextElement().toString()); 63 assertEquals("warn (2)", nodes.nextElement().toString()); 64 nodes.nextElement(); 65 assertEquals("bar (1)", nodes.nextElement().toString()); 66 assertEquals("foo (1)", nodes.nextElement().toString()); 54 67 vtp.setVisible(true); 55 68 vtp.setVisible(false);
Note:
See TracChangeset
for help on using the changeset viewer.