@@ -29,14 +29,14 @@ public void testLibreofficeAnyToPdf() throws IOException {
2929
3030 @ Test
3131 public void testLibreofficeHtmlToDocx () throws IOException {
32- Api2PdfResponse response = a2pClient .libreofficeHtmlToDocx ("http ://www.api2pdf.com/wp-content/uploads/2021/01/sampleHtml.html" , true ,
32+ Api2PdfResponse response = a2pClient .libreofficeHtmlToDocx ("https ://www.api2pdf.com/wp-content/uploads/2021/01/sampleHtml.html" , true ,
3333 "test.docx" );
3434 Assert .assertEquals (response .getSuccess (), true );
3535 }
3636
3737 @ Test
3838 public void testLibreofficeHtmlToXlsx () throws IOException {
39- Api2PdfResponse response = a2pClient .libreofficeHtmlToXlsx ("http ://www.api2pdf.com/wp-content/uploads/2021/01/sampleTables.html" , true ,
39+ Api2PdfResponse response = a2pClient .libreofficeHtmlToXlsx ("https ://www.api2pdf.com/wp-content/uploads/2021/01/sampleTables.html" , true ,
4040 "test.xlsx" );
4141 Assert .assertEquals (response .getSuccess (), true );
4242 }
@@ -50,30 +50,30 @@ public void testLibreofficeThumbnail() throws IOException {
5050
5151 @ Test
5252 public void testLibreofficePdfToHtml () throws IOException {
53- Api2PdfResponse response = a2pClient .libreofficePdfToHtml ("http ://www.api2pdf.com/wp-content/uploads/2021/01/1a082b03-2bd6-4703-989d-0443a88e3b0f-4.pdf" , true ,
53+ Api2PdfResponse response = a2pClient .libreofficePdfToHtml ("https ://www.api2pdf.com/wp-content/uploads/2021/01/1a082b03-2bd6-4703-989d-0443a88e3b0f-4.pdf" , true ,
5454 "test.html" );
5555 Assert .assertEquals (response .getSuccess (), true );
5656 }
5757
5858 @ Test
5959 public void testPdfSharpMerge () throws IOException {
60- String [] urls = { "http ://www.api2pdf.com/wp-content/uploads/2021/01/1a082b03-2bd6-4703-989d-0443a88e3b0f-4.pdf" ,
61- "http ://www.api2pdf.com/wp-content/uploads/2021/01/1a082b03-2bd6-4703-989d-0443a88e3b0f-4.pdf" };
60+ String [] urls = {"https ://www.api2pdf.com/wp-content/uploads/2021/01/1a082b03-2bd6-4703-989d-0443a88e3b0f-4.pdf" ,
61+ "https ://www.api2pdf.com/wp-content/uploads/2021/01/1a082b03-2bd6-4703-989d-0443a88e3b0f-4.pdf" };
6262 Api2PdfResponse response = a2pClient .pdfsharpMerge (urls , true , "test.pdf" );
6363 Assert .assertEquals (response .getSuccess (), true );
6464 }
6565
6666 @ Test
6767 public void testPdfSharpAddBookmark () throws IOException {
68- String url = "http ://www.api2pdf.com/wp-content/uploads/2021/01/1a082b03-2bd6-4703-989d-0443a88e3b0f-4.pdf" ;
68+ String url = "https ://www.api2pdf.com/wp-content/uploads/2021/01/1a082b03-2bd6-4703-989d-0443a88e3b0f-4.pdf" ;
6969 Api2PdfBookmarkItemModel [] bookmarks = new Api2PdfBookmarkItemModel [] { new Api2PdfBookmarkItemModel (0 , "Title page" ) };
7070 Api2PdfResponse response = a2pClient .pdfsharpAddBookmarks (url , bookmarks , true , "test.pdf" );
7171 Assert .assertEquals (response .getSuccess (), true );
7272 }
7373
7474 @ Test
7575 public void testPdfSharpAddPassword () throws IOException {
76- String url = "http ://www.api2pdf.com/wp-content/uploads/2021/01/1a082b03-2bd6-4703-989d-0443a88e3b0f-4.pdf" ;
76+ String url = "https ://www.api2pdf.com/wp-content/uploads/2021/01/1a082b03-2bd6-4703-989d-0443a88e3b0f-4.pdf" ;
7777 String password = "hello" ;
7878 Api2PdfResponse response = a2pClient .pdfsharpAddPassword (url , password , true , "test.pdf" );
7979 Assert .assertEquals (response .getSuccess (), true );
@@ -88,7 +88,7 @@ public void testWkhtmlHtmlToPdf() throws IOException {
8888
8989 @ Test
9090 public void testWkhtmlHtmlToPdfWithOptions () throws IOException {
91- HashMap <String , String > options = new HashMap <String , String >();
91+ HashMap <String , String > options = new HashMap <>();
9292 options .put ("orientation" , "landscape" );
9393 options .put ("pageSize" , "A4" );
9494 Api2PdfResponse response = a2pClient .wkhtmlHtmlToPdf ("<p>test</p>" ,
@@ -105,7 +105,7 @@ public void testWkhtmlUrlToPdf() throws IOException {
105105
106106 @ Test
107107 public void testWkhtmlUrlToPdfWithOptions () throws IOException {
108- HashMap <String , String > options = new HashMap <String , String >();
108+ HashMap <String , String > options = new HashMap <>();
109109 options .put ("orientation" , "landscape" );
110110 options .put ("pageSize" , "A4" );
111111 Api2PdfResponse response = a2pClient .wkhtmlUrlToPdf ("https://www.api2pdf.com" ,
@@ -122,7 +122,7 @@ public void testChromeHtmlToPdf() throws IOException {
122122
123123 @ Test
124124 public void testChromeHtmlToPdfWithOptions () throws IOException {
125- HashMap <String , String > options = new HashMap <String , String >();
125+ HashMap <String , String > options = new HashMap <>();
126126 options .put ("landscape" , "true" );
127127 Api2PdfResponse response = a2pClient .chromeHtmlToPdf ("<p>test</p>" ,
128128 true , "test.pdf" , options );
@@ -138,7 +138,7 @@ public void testChromeUrlToPdf() throws IOException {
138138
139139 @ Test
140140 public void testChromeUrlToPdfWithOptions () throws IOException {
141- HashMap <String , String > options = new HashMap <String , String >();
141+ HashMap <String , String > options = new HashMap <>();
142142 options .put ("orientation" , "landscape" );
143143 Api2PdfResponse response = a2pClient .chromeUrlToPdf ("https://www.api2pdf.com" ,
144144 true , "test.pdf" , options );
@@ -154,7 +154,7 @@ public void testChromeHtmlToImage() throws IOException {
154154
155155 @ Test
156156 public void testChromeHtmlToImageWithOptions () throws IOException {
157- HashMap <String , String > options = new HashMap <String , String >();
157+ HashMap <String , String > options = new HashMap <>();
158158 options .put ("fullPage" , "false" );
159159 Api2PdfResponse response = a2pClient .chromeHtmlToPdf ("<p>test</p>" ,
160160 true , "test.png" , options );
@@ -170,7 +170,7 @@ public void testChromeUrlToImage() throws IOException {
170170
171171 @ Test
172172 public void testChromeUrlToImageWithOptions () throws IOException {
173- HashMap <String , String > options = new HashMap <String , String >();
173+ HashMap <String , String > options = new HashMap <>();
174174 options .put ("fullPage" , "false" );
175175 Api2PdfResponse response = a2pClient .chromeUrlToImage ("https://www.api2pdf.com" ,
176176 true , "test.png" , options );
0 commit comments