Changeset 9475 in josm for trunk/test
- Timestamp:
- 2016-01-16T00:18:58+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/DefaultNameFormatterTest.java
r8863 r9475 10 10 import java.util.ArrayList; 11 11 import java.util.Comparator; 12 import java.util.List; 12 13 13 14 import org.junit.BeforeClass; … … 16 17 import org.openstreetmap.josm.TestUtils; 17 18 import org.openstreetmap.josm.data.osm.DataSet; 19 import org.openstreetmap.josm.data.osm.Node; 18 20 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; 19 21 import org.openstreetmap.josm.data.osm.OsmUtils; … … 123 125 .replace("\u200E", "").replace("\u200F", ""); 124 126 } 127 128 /** 129 * Test of {@link DefaultNameFormatter#formatAsHtmlUnorderedList} methods. 130 */ 131 @Test 132 public void testFormatAsHtmlUnorderedList() { 133 assertEquals("<ul><li>incomplete</li></ul>", 134 DefaultNameFormatter.getInstance().formatAsHtmlUnorderedList(new Node(1))); 135 136 List<Node> nodes = new ArrayList<>(10); 137 for (int i = 1; i <= 10; i++) { 138 nodes.add(new Node(i, 1)); 139 } 140 assertEquals("<ul><li>1</li><li>2</li><li>3</li><li>4</li><li>...</li></ul>", 141 DefaultNameFormatter.getInstance().formatAsHtmlUnorderedList(nodes, 5)); 142 } 125 143 }
Note:
See TracChangeset
for help on using the changeset viewer.