コード例 #1
0
 @Test
 public void testFileNameOverridesUrl() {
   BinaryHttpResponse response = new BinaryHttpResponse();
   response.setRequest(reqUrl);
   response.setFileName("hallo.pdf");
   assertEquals("hallo.pdf", response.getFileName());
 }
コード例 #2
0
 @Test
 public void testFileNameFromUrlWithQuery() {
   BinaryHttpResponse response = new BinaryHttpResponse();
   response.setRequest(reqUrl + "?hallo=false");
   assertEquals("afvalkalender2015pdf.pdf", response.getFileName());
 }