- Timestamp:
- 2018-08-28T22:33:11+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/functional/org/openstreetmap/josm/tools/HttpClientTest.java
r13358 r14191 39 39 public class HttpClientTest { 40 40 41 /** 42 * Setup test 43 */ 41 44 @Rule 42 45 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") … … 73 76 } 74 77 78 /** 79 * Test constructor, getters and setters 80 * @throws IOException if an I/O error occurs 81 */ 75 82 @Test 76 83 public void testConstructorGetterSetter() throws IOException { … … 90 97 } 91 98 99 /** 100 * Test HTTP GET 101 * @throws IOException if an I/O error occurs 102 */ 92 103 @Test 93 104 public void testGet() throws IOException { … … 109 120 } 110 121 122 /** 123 * Test JOSM User-Agent 124 * @throws IOException if an I/O error occurs 125 */ 111 126 @Test 112 127 public void testUserAgent() throws IOException { … … 117 132 } 118 133 134 /** 135 * Test UTF-8 encoded content 136 * @throws IOException if an I/O error occurs 137 */ 119 138 @Test 120 139 public void testFetchUtf8Content() throws IOException { … … 126 145 } 127 146 147 /** 148 * Test HTTP POST 149 * @throws IOException if an I/O error occurs 150 */ 128 151 @Test 129 152 public void testPost() throws IOException { … … 169 192 } 170 193 194 /** 195 * Test maximum number of redirections. 196 * @throws IOException if an I/O error occurs 197 */ 171 198 @Test(expected = IOException.class) 172 199 public void testTooMuchRedirects() throws IOException { … … 174 201 } 175 202 203 /** 204 * Test HTTP error 418 205 * @throws IOException if an I/O error occurs 206 */ 176 207 @Test 177 208 public void testHttp418() throws IOException { … … 186 217 } 187 218 219 /** 220 * Test HTTP error 401 221 * @throws IOException if an I/O error occurs 222 */ 188 223 @Test 189 224 public void testHttp401() throws IOException { … … 198 233 } 199 234 235 /** 236 * Test HTTP error 402 237 * @throws IOException if an I/O error occurs 238 */ 200 239 @Test 201 240 public void testHttp402() throws IOException { … … 210 249 } 211 250 251 /** 252 * Test HTTP error 403 253 * @throws IOException if an I/O error occurs 254 */ 212 255 @Test 213 256 public void testHttp403() throws IOException { … … 222 265 } 223 266 267 /** 268 * Test HTTP error 404 269 * @throws IOException if an I/O error occurs 270 */ 224 271 @Test 225 272 public void testHttp404() throws IOException { … … 234 281 } 235 282 283 /** 284 * Test HTTP error 500 285 * @throws IOException if an I/O error occurs 286 */ 236 287 @Test 237 288 public void testHttp500() throws IOException {
Note:
See TracChangeset
for help on using the changeset viewer.