Changeset 8540 in josm for trunk/test/unit
- Timestamp:
- 2015-06-27T21:43:35+02:00 (9 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/JOSMFixture.java
r8511 r8540 74 74 if (!f.exists() || !f.canRead()) { 75 75 fail(MessageFormat.format( 76 // CHECKSTYLE.OFF: LineLength 76 77 "property ''{0}'' points to ''{1}'' which is either not existing ({2}) or not readable ({3}). Current directory is ''{4}''.", 78 // CHECKSTYLE.ON: LineLength 77 79 "josm.home", josmHome, f.exists(), f.canRead(), Paths.get("").toAbsolutePath())); 78 80 } -
trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRegressionTest.java
r8510 r8540 83 83 84 84 Random rand = new Random(); 85 try (BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(PROJECTION_DATA_FILE), StandardCharsets.UTF_8))) { 85 try (BufferedWriter out = new BufferedWriter(new OutputStreamWriter( 86 new FileOutputStream(PROJECTION_DATA_FILE), StandardCharsets.UTF_8))) { 86 87 out.write("# Data for test/unit/org/openstreetmap/josm/data/projection/ProjectionRegressionTest.java\n"); 87 88 out.write("# Format: 1. Projection code; 2. lat/lon; 3. lat/lon projected -> east/north; 4. east/north (3.) inverse projected\n"); -
trunk/test/unit/org/openstreetmap/josm/data/projection/SwissGridTest.java
r8513 r8540 23 23 Main.setProjection(Projections.getProjectionByCode(SWISS_EPSG_CODE)); // Swiss grid 24 24 } 25 26 // CHECKSTYLE.OFF: LineLength 25 27 26 28 /** … … 34 36 new ProjData("Monte Generoso", d(9, 1, 16.389053), d(45, 55, 45.438020), 1685.027, 722758.810, 87649.670, 1636.600) }; 35 37 38 // CHECKSTYLE.ON: LineLength 39 36 40 private double d(double deg, double min, double sec) { 37 41 return deg + min / 60. + sec / 3600.; -
trunk/test/unit/org/openstreetmap/josm/gui/dialogs/LatLonDialogTest.java
r8509 r8540 36 36 @Test 37 37 public void test6() throws Exception { 38 assertThat(LatLonDialog.parseLatLon("N 49°29'04\" E 19°24'43\""), is(new LatLon(49 + 29. / 60 + 04. / 3600, 19 + 24. / 60 + 43. / 3600))); 38 assertThat(LatLonDialog.parseLatLon("N 49°29'04\" E 19°24'43\""), 39 is(new LatLon(49 + 29. / 60 + 04. / 3600, 19 + 24. / 60 + 43. / 3600))); 39 40 } 40 41 … … 46 47 @Test 47 48 public void test8() throws Exception { 48 assertThat(LatLonDialog.parseLatLon("49°29'21\" N 19°24'38\" E"), is(new LatLon(49 + 29. / 60 + 21. / 3600, 19 + 24. / 60 + 38. / 3600))); 49 assertThat(LatLonDialog.parseLatLon("49°29'21\" N 19°24'38\" E"), 50 is(new LatLon(49 + 29. / 60 + 21. / 3600, 19 + 24. / 60 + 38. / 3600))); 49 51 } 50 52 -
trunk/test/unit/org/openstreetmap/josm/gui/tagging/PresetClassificationsTest.java
r8511 r8540 36 36 37 37 private List<TaggingPresetSelector.PresetClassification> getMatchingPresets(String searchText, OsmPrimitive w) { 38 return classifications.getMatchingPresets(searchText, true, true, EnumSet.of(TaggingPresetType.forPrimitive(w)), Collections.singleton(w)); 38 return classifications.getMatchingPresets(searchText, true, true, EnumSet.of(TaggingPresetType.forPrimitive(w)), 39 Collections.singleton(w)); 39 40 } 40 41 -
trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/handler/RequestHandlerTest.java
r8510 r8540 71 71 public void testRequestParameter4() { 72 72 assertThat(getRequestParameter( 73 // CHECKSTYLE.OFF: LineLength 73 74 "http://example.com/:@-._~!$&'()*+,=;:@-._~!$&'()*+,=:@-._~!$&'()*+,==?/?:@-._~!$'()*+,;=/?:@-._~!$'()*+,;==#/?:@-._~!$&'()*+,;="), 75 // CHECKSTYLE.ON: LineLength 74 76 is(Collections.singletonMap("/?:@-._~!$'()* ,;", "/?:@-._~!$'()* ,;=="))); 75 77 } -
trunk/test/unit/org/openstreetmap/josm/tools/template_engine/TemplateEngineTest.java
r8510 r8540 217 217 @Test 218 218 public void testMultilevel() throws ParseError { 219 TemplateParser parser = new TemplateParser("!{(parent(parent(type=type1)) type=grandparent) | (parent type=type2 type=parent2) '{name}'}"); 219 TemplateParser parser = new TemplateParser( 220 "!{(parent(parent(type=type1)) type=grandparent) | (parent type=type2 type=parent2) '{name}'}"); 220 221 DatasetFactory ds = new DatasetFactory(); 221 222 Relation parent1 = ds.addRelation(1);
Note:
See TracChangeset
for help on using the changeset viewer.