Skip to content

Commit 568c1bf

Browse files
author
Zack Schwartz
committed
update java library dependencies
1 parent a9a9cac commit 568c1bf

File tree

2 files changed

+12
-17
lines changed

2 files changed

+12
-17
lines changed

api2pdf/pom.xml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
<maven.compiler.target>
8989
1.7
9090
</maven.compiler.target>
91+
<javadocExecutable>/usr/bin/javadoc</javadocExecutable>
9192
</properties>
9293
<dependencies>
9394
<dependency>
@@ -97,9 +98,7 @@
9798
<artifactId>
9899
junit
99100
</artifactId>
100-
<version>
101-
4.11
102-
</version>
101+
<version>4.13.2</version>
103102
<scope>
104103
test
105104
</scope>
@@ -111,9 +110,7 @@
111110
<artifactId>
112111
jackson-databind
113112
</artifactId>
114-
<version>
115-
2.9.4
116-
</version>
113+
<version>2.12.4</version>
117114
</dependency>
118115
<dependency>
119116
<groupId>
@@ -122,9 +119,7 @@
122119
<artifactId>
123120
maven-filtering
124121
</artifactId>
125-
<version>
126-
1.3
127-
</version>
122+
<version>3.2.0</version>
128123
</dependency>
129124
</dependencies>
130125
<build>
@@ -152,7 +147,7 @@
152147
maven-surefire-plugin
153148
</artifactId>
154149
<version>
155-
2.20.1
150+
2.22.1
156151
</version>
157152
</plugin>
158153
<plugin>

api2pdf/src/test/java/api2pdf/Api2PdfClientTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ public static void initApi2PdfClient() {
2121

2222
@Test
2323
public void testLibreofficeConvert() throws IOException {
24-
Api2PdfResponse response = a2pClient.libreofficeConvert("http://homepages.inf.ed.ac.uk/neilb/TestWordDoc.doc", true,
24+
Api2PdfResponse response = a2pClient.libreofficeConvert("https://www.api2pdf.com/wp-content/themes/api2pdf/assets/samples/sample-word-doc.docx", true,
2525
"test.pdf");
2626
Assert.assertEquals(response.getSuccess(), true);
2727
}
2828

2929
@Test
3030
public void testMerge() throws IOException {
31-
String[] urls = { "http://www.orimi.com/pdf-test.pdf",
32-
"http://www.orimi.com/pdf-test.pdf" };
31+
String[] urls = { "http://www.api2pdf.com/wp-content/uploads/2021/01/1a082b03-2bd6-4703-989d-0443a88e3b0f-4.pdf",
32+
"http://www.api2pdf.com/wp-content/uploads/2021/01/1a082b03-2bd6-4703-989d-0443a88e3b0f-4.pdf" };
3333
Api2PdfResponse response = a2pClient.merge(urls, true, "test.pdf");
3434
Assert.assertEquals(response.getSuccess(), true);
3535
}
@@ -53,7 +53,7 @@ public void testWkhtmlToPdfFromHtmlWithOptions() throws IOException {
5353

5454
@Test
5555
public void testWkhtmlToPdfFromUrl() throws IOException {
56-
Api2PdfResponse response = a2pClient.wkhtmlToPdfFromUrl("https://www.google.com",
56+
Api2PdfResponse response = a2pClient.wkhtmlToPdfFromUrl("https://www.api2pdf.com",
5757
true, "test.pdf");
5858
Assert.assertEquals(response.getSuccess(), true);
5959
}
@@ -63,7 +63,7 @@ public void testWkhtmlToPdfFromUrlWithOptions() throws IOException {
6363
HashMap<String, String> options = new HashMap<String, String>();
6464
options.put("orientation", "landscape");
6565
options.put("pageSize", "A4");
66-
Api2PdfResponse response = a2pClient.wkhtmlToPdfFromUrl("https://www.google.com",
66+
Api2PdfResponse response = a2pClient.wkhtmlToPdfFromUrl("https://www.api2pdf.com",
6767
true, "test.pdf", options);
6868
Assert.assertEquals(response.getSuccess(), true);
6969
}
@@ -87,7 +87,7 @@ public void testHeadlessChromeFromHtmlWithOptions() throws IOException {
8787

8888
@Test
8989
public void testHeadlessChromeFromUrl() throws IOException {
90-
Api2PdfResponse response = a2pClient.headlessChromeFromUrl("https://www.google.com",
90+
Api2PdfResponse response = a2pClient.headlessChromeFromUrl("https://www.api2pdf.com",
9191
true, "test.pdf");
9292
Assert.assertEquals(response.getSuccess(), true);
9393
}
@@ -97,7 +97,7 @@ public void testHeadlessChromeFromUrlWithOptions() throws IOException {
9797
HashMap<String, String> options = new HashMap<String, String>();
9898
options.put("orientation", "landscape");
9999
options.put("pageSize", "A4");
100-
Api2PdfResponse response = a2pClient.headlessChromeFromUrl("https://www.google.com",
100+
Api2PdfResponse response = a2pClient.headlessChromeFromUrl("https://www.api2pdf.com",
101101
true, "test.pdf", options);
102102
Assert.assertEquals(response.getSuccess(), true);
103103
}

0 commit comments

Comments
 (0)