Changeset 8876 in josm for trunk/test/unit/org/openstreetmap/josm/io/session
- Timestamp:
- 2015-10-14T23:35:44+02:00 (9 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/io/session
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/io/session/SessionReaderTest.java
r8857 r8876 114 114 } 115 115 116 /** 117 * Tests to read a .jos file containing Bing imagery. 118 * @throws IOException if any I/O error occurs 119 * @throws IllegalDataException is the test file is considered as invalid 120 */ 116 121 @Test 117 122 public void testReadImage() throws IOException, IllegalDataException { -
trunk/test/unit/org/openstreetmap/josm/io/session/SessionWriterTest.java
r8837 r8876 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.io.session; 3 4 import static org.junit.Assert.fail; 3 5 4 6 import java.io.File; … … 85 87 } 86 88 87 private void testWrite(List<Layer> layers, final boolean zip) throws IOException{89 private void testWrite(List<Layer> layers, final boolean zip) { 88 90 Map<Layer, SessionLayerExporter> exporters = new HashMap<>(); 89 91 if (zip) { … … 101 103 try { 102 104 sw.write(file); 105 } catch (IOException e) { 106 e.printStackTrace(); 107 fail(e.getMessage()); 103 108 } finally { 104 109 if (file.exists()) { … … 135 140 /** 136 141 * Tests to write an empty .jos file. 137 * @throws IOException if any I/O error occurs 138 */ 139 @Test 140 public void testWriteEmptyJos() throws IOException { 142 */ 143 @Test 144 public void testWriteEmptyJos() { 141 145 testWrite(Collections.<Layer>emptyList(), false); 142 146 } … … 144 148 /** 145 149 * Tests to write an empty .joz file. 146 * @throws IOException if any I/O error occurs 147 */ 148 @Test 149 public void testWriteEmptyJoz() throws IOException { 150 */ 151 @Test 152 public void testWriteEmptyJoz() { 150 153 testWrite(Collections.<Layer>emptyList(), true); 151 154 } … … 153 156 /** 154 157 * Tests to write a .jos file containing OSM data. 155 * @throws IOException if any I/O error occurs 156 */ 157 @Test 158 public void testWriteOsmJos() throws IOException { 158 */ 159 @Test 160 public void testWriteOsmJos() { 159 161 testWrite(Collections.<Layer>singletonList(createOsmLayer()), false); 160 162 } … … 162 164 /** 163 165 * Tests to write a .joz file containing OSM data. 164 * @throws IOException if any I/O error occurs 165 */ 166 @Test 167 public void testWriteOsmJoz() throws IOException { 166 */ 167 @Test 168 public void testWriteOsmJoz() { 168 169 testWrite(Collections.<Layer>singletonList(createOsmLayer()), true); 169 170 } … … 171 172 /** 172 173 * Tests to write a .jos file containing GPX data. 173 * @throws IOException if any I/O error occurs 174 */ 175 @Test 176 public void testWriteGpxJos() throws IOException { 174 */ 175 @Test 176 public void testWriteGpxJos() { 177 177 testWrite(Collections.<Layer>singletonList(createGpxLayer()), false); 178 178 } … … 180 180 /** 181 181 * Tests to write a .joz file containing GPX data. 182 * @throws IOException if any I/O error occurs 183 */ 184 @Test 185 public void testWriteGpxJoz() throws IOException { 182 */ 183 @Test 184 public void testWriteGpxJoz() { 186 185 testWrite(Collections.<Layer>singletonList(createGpxLayer()), true); 187 186 } … … 189 188 /** 190 189 * Tests to write a .joz file containing GPX and marker data. 191 * @throws IOException if any I/O error occurs 192 */ 193 @Test 194 public void testWriteGpxAndMarkerJoz() throws IOException { 190 */ 191 @Test 192 public void testWriteGpxAndMarkerJoz() { 195 193 GpxLayer gpx = createGpxLayer(); 196 194 testWrite(Arrays.asList(gpx, createMarkerLayer(gpx)), true); … … 199 197 /** 200 198 * Tests to write a .joz file containing an imagery layer. 201 * @throws IOException if any I/O error occurs 202 */ 203 @Test 204 public void testWriteImageryLayer() throws IOException { 199 */ 200 @Test 201 public void testWriteImageryLayer() { 205 202 final Layer layer = createImageryLayer(); 206 203 testWrite(Collections.singletonList(layer), true);
Note:
See TracChangeset
for help on using the changeset viewer.