Changeset 7365 in josm for trunk/test/unit/org/openstreetmap/josm/gui
- Timestamp:
- 2014-08-04T00:34:17+02:00 (10 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/DefaultNameFormatterTest.java
r7356 r7365 55 55 Comparator<Relation> comparator = DefaultNameFormatter.getInstance().getRelationComparator(); 56 56 57 try (InputStream is = new FileInputStream(TestUtils.get TestDataRoot() + "regress/9632/data.osm.zip")) {57 try (InputStream is = new FileInputStream(TestUtils.getRegressionDataFile(9632, "data.osm.zip"))) { 58 58 DataSet ds = OsmReader.parseDataSet(Compression.ZIP.getUncompressedInputStream(is), null); 59 59 -
trunk/test/unit/org/openstreetmap/josm/gui/tagging/TaggingPresetReaderTest.java
r7081 r7365 32 32 33 33 /** 34 * Gets path to test data directory for given ticketid.35 * @param ticketid36 * @return37 */38 protected static String getRegressionDataDir(int ticketid) {39 return TestUtils.getTestDataRoot() + "/regress/" + ticketid;40 }41 42 /**43 * Gets path to given file in test data directory for given ticketid.44 * @param ticketid45 * @param filename46 * @return47 */48 protected static String getRegressionDataFile(int ticketid, String filename) {49 return getRegressionDataDir(ticketid) + '/' + filename;50 }51 52 /**53 34 * #8954 - last checkbox in the preset is not added 54 35 */ 55 36 @Test 56 37 public void test8954() throws SAXException, IOException { 57 String presetfile = getRegressionDataFile(8954, "preset.xml");38 String presetfile = TestUtils.getRegressionDataFile(8954, "preset.xml"); 58 39 final Collection<TaggingPreset> presets = TaggingPresetReader.readAll(presetfile, false); 59 40 Assert.assertEquals("Number of preset items", 1, presets.size());
Note:
See TracChangeset
for help on using the changeset viewer.