equal
deleted
inserted
replaced
158 |
158 |
159 @Test(dataProvider = "positive") |
159 @Test(dataProvider = "positive") |
160 void test(String uriString, String contentDispositionValue, String expectedFilename) |
160 void test(String uriString, String contentDispositionValue, String expectedFilename) |
161 throws Exception |
161 throws Exception |
162 { |
162 { |
|
163 out.printf("test(%s, %s, %s): starting", uriString, contentDispositionValue, expectedFilename); |
163 HttpClient client = HttpClient.newBuilder().sslContext(sslContext).build(); |
164 HttpClient client = HttpClient.newBuilder().sslContext(sslContext).build(); |
164 |
165 |
165 URI uri = URI.create(uriString); |
166 URI uri = URI.create(uriString); |
166 HttpRequest request = HttpRequest.newBuilder(uri) |
167 HttpRequest request = HttpRequest.newBuilder(uri) |
167 .POST(fromString("May the luck of the Irish be with you!")) |
168 .POST(fromString("May the luck of the Irish be with you!")) |
226 |
227 |
227 @Test(dataProvider = "negative") |
228 @Test(dataProvider = "negative") |
228 void negativeTest(String uriString, String contentDispositionValue) |
229 void negativeTest(String uriString, String contentDispositionValue) |
229 throws Exception |
230 throws Exception |
230 { |
231 { |
|
232 out.printf("negativeTest(%s, %s): starting", uriString, contentDispositionValue); |
231 HttpClient client = HttpClient.newBuilder().sslContext(sslContext).build(); |
233 HttpClient client = HttpClient.newBuilder().sslContext(sslContext).build(); |
232 |
234 |
233 URI uri = URI.create(uriString); |
235 URI uri = URI.create(uriString); |
234 HttpRequest request = HttpRequest.newBuilder(uri) |
236 HttpRequest request = HttpRequest.newBuilder(uri) |
235 .POST(fromString("Does not matter")) |
237 .POST(fromString("Does not matter")) |