1.8
1.8
@@ -45,14 +45,22 @@
org.apache.maven.plugins
maven-war-plugin
- 3.0.0
+ ${maven-war-plugin.version}
org.eclipse.jetty
jetty-maven-plugin
- 9.3.12.v20160915
+ ${jetty-maven-plugin.version}
+
+
+ 3.1.0
+
+ 3.6.0
+ 3.0.0
+ 9.4.0.v20161208
+
diff --git a/pdf/README.md b/pdf/README.md
new file mode 100644
index 0000000000..7160df4081
--- /dev/null
+++ b/pdf/README.md
@@ -0,0 +1,2 @@
+### Relevant Articles:
+- [PDF Conversions in Java](http://www.baeldung.com/pdf-conversions-java)
diff --git a/pdf/pom.xml b/pdf/pom.xml
index 311265880d..332e1f5244 100644
--- a/pdf/pom.xml
+++ b/pdf/pom.xml
@@ -14,6 +14,15 @@
UTF-8
+ 4.12
+ 2.0.3
+ 1.6
+ 5.5.10
+ 5.5.10
+ 3.15
+ 1.8
+ 3.15
+
3.5.1
@@ -21,43 +30,43 @@
junit
junit
- 3.8.1
+ ${junit.version}
test
org.apache.pdfbox
pdfbox-tools
- 2.0.3
+ ${pdfbox-tools.version}
net.sf.cssbox
pdf2dom
- 1.6
+ ${pdf2dom.version}
com.itextpdf
itextpdf
- 5.5.10
+ ${itextpdf.version}
- org.apache.poi
- poi
- 3.15
+ com.itextpdf.tool
+ xmlworker
+ ${xmlworker.version}
org.apache.poi
poi-scratchpad
- 3.15
+ ${poi-scratchpad.version}
org.apache.xmlgraphics
batik-transcoder
- 1.8
+ ${batik-transcoder.version}
org.apache.poi
poi-ooxml
- 3.15
+ ${poi-ooxml.version}
diff --git a/pdf/src/main/java/com/baeldung/pdf/PDF2HTMLExample.java b/pdf/src/main/java/com/baeldung/pdf/PDF2HTMLExample.java
index 0d38208bab..1fdf07a05f 100644
--- a/pdf/src/main/java/com/baeldung/pdf/PDF2HTMLExample.java
+++ b/pdf/src/main/java/com/baeldung/pdf/PDF2HTMLExample.java
@@ -1,6 +1,8 @@
package com.baeldung.pdf;
import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.Writer;
@@ -10,14 +12,21 @@ import javax.xml.parsers.ParserConfigurationException;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.fit.pdfdom.PDFDomTree;
+import com.itextpdf.text.Document;
+import com.itextpdf.text.DocumentException;
+import com.itextpdf.text.pdf.PdfWriter;
+import com.itextpdf.tool.xml.XMLWorkerHelper;
+
public class PDF2HTMLExample {
- private static final String FILENAME = "src/main/resources/pdf.pdf";
+ private static final String PDF = "src/main/resources/pdf.pdf";
+ private static final String HTML = "src/main/resources/html.html";
public static void main(String[] args) {
try {
- generateHTMLFromPDF(FILENAME);
- } catch (IOException | ParserConfigurationException e) {
+ generateHTMLFromPDF(PDF);
+ generatePDFFromHTML(HTML);
+ } catch (IOException | ParserConfigurationException | DocumentException e) {
e.printStackTrace();
}
}
@@ -32,4 +41,12 @@ public class PDF2HTMLExample {
pdf.close();
}
}
+
+ private static void generatePDFFromHTML(String filename) throws ParserConfigurationException, IOException, DocumentException {
+ Document document = new Document();
+ PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("src/output/html.pdf"));
+ document.open();
+ XMLWorkerHelper.getInstance().parseXHtml(writer, document, new FileInputStream(filename));
+ document.close();
+ }
}
diff --git a/pdf/src/main/java/com/baeldung/pdf/PDF2ImageExample.java b/pdf/src/main/java/com/baeldung/pdf/PDF2ImageExample.java
index 00778d16c1..69f5d9731f 100644
--- a/pdf/src/main/java/com/baeldung/pdf/PDF2ImageExample.java
+++ b/pdf/src/main/java/com/baeldung/pdf/PDF2ImageExample.java
@@ -1,24 +1,36 @@
package com.baeldung.pdf;
+import java.awt.image.BufferedImage;
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.net.URL;
+
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.rendering.ImageType;
import org.apache.pdfbox.rendering.PDFRenderer;
import org.apache.pdfbox.tools.imageio.ImageIOUtil;
-import java.awt.image.BufferedImage;
-import java.io.File;
-import java.io.IOException;
+import com.itextpdf.text.BadElementException;
+import com.itextpdf.text.Document;
+import com.itextpdf.text.DocumentException;
+import com.itextpdf.text.Image;
+import com.itextpdf.text.pdf.PdfWriter;
public class PDF2ImageExample {
- private static final String FILENAME = "src/main/resources/pdf.pdf";
-
+ private static final String PDF = "src/main/resources/pdf.pdf";
+ private static final String JPG = "http://cdn2.baeldung.netdna-cdn.com/wp-content/uploads/2016/05/baeldung-rest-widget-main-1.2.0";
+ private static final String GIF = "https://media.giphy.com/media/l3V0x6kdXUW9M4ONq/giphy";
+
public static void main(String[] args) {
try {
- generateImageFromPDF(FILENAME, "png");
- generateImageFromPDF(FILENAME, "jpeg");
- generateImageFromPDF(FILENAME, "gif");
- } catch (IOException e) {
+ generateImageFromPDF(PDF, "png");
+ generateImageFromPDF(PDF, "jpeg");
+ generateImageFromPDF(PDF, "gif");
+ generatePDFFromImage(JPG, "jpg");
+ generatePDFFromImage(GIF, "gif");
+ } catch (IOException | DocumentException e) {
e.printStackTrace();
}
}
@@ -32,4 +44,19 @@ public class PDF2ImageExample {
}
document.close();
}
+
+ private static void generatePDFFromImage(String filename, String extension)
+ throws IOException, BadElementException, DocumentException {
+ Document document = new Document();
+ String input = filename + "." + extension;
+ String output = "src/output/" + extension + ".pdf";
+ FileOutputStream fos = new FileOutputStream(output);
+ PdfWriter writer = PdfWriter.getInstance(document, fos);
+ writer.open();
+ document.open();
+ document.add(Image.getInstance((new URL(input))));
+ document.close();
+ writer.close();
+ }
+
}
diff --git a/pdf/src/main/java/com/baeldung/pdf/PDF2TextExample.java b/pdf/src/main/java/com/baeldung/pdf/PDF2TextExample.java
index c5880a4e91..7965152234 100644
--- a/pdf/src/main/java/com/baeldung/pdf/PDF2TextExample.java
+++ b/pdf/src/main/java/com/baeldung/pdf/PDF2TextExample.java
@@ -1,6 +1,9 @@
package com.baeldung.pdf;
+import java.io.BufferedReader;
import java.io.File;
+import java.io.FileOutputStream;
+import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
@@ -10,14 +13,24 @@ import org.apache.pdfbox.pdfparser.PDFParser;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.text.PDFTextStripper;
+import com.itextpdf.text.Document;
+import com.itextpdf.text.DocumentException;
+import com.itextpdf.text.Element;
+import com.itextpdf.text.Font;
+import com.itextpdf.text.PageSize;
+import com.itextpdf.text.Paragraph;
+import com.itextpdf.text.pdf.PdfWriter;
+
public class PDF2TextExample {
- private static final String FILENAME = "src/main/resources/pdf.pdf";
+ private static final String PDF = "src/main/resources/pdf.pdf";
+ private static final String TXT = "src/main/resources/txt.txt";
public static void main(String[] args) {
try {
- generateTxtFromPDF(FILENAME);
- } catch (IOException e) {
+ generateTxtFromPDF(PDF);
+ generatePDFFromTxt(TXT);
+ } catch (IOException | DocumentException e) {
e.printStackTrace();
}
}
@@ -45,4 +58,27 @@ public class PDF2TextExample {
pw.close();
}
+ private static void generatePDFFromTxt(String filename) throws IOException, DocumentException {
+ Document pdfDoc = new Document(PageSize.A4);
+ PdfWriter.getInstance(pdfDoc, new FileOutputStream("src/output/txt.pdf"))
+ .setPdfVersion(PdfWriter.PDF_VERSION_1_7);
+ pdfDoc.open();
+
+ Font myfont = new Font();
+ myfont.setStyle(Font.NORMAL);
+ myfont.setSize(11);
+ pdfDoc.add(new Paragraph("\n"));
+
+ BufferedReader br = new BufferedReader(new FileReader(filename));
+ String strLine;
+ while ((strLine = br.readLine()) != null) {
+ Paragraph para = new Paragraph(strLine + "\n", myfont);
+ para.setAlignment(Element.ALIGN_JUSTIFIED);
+ pdfDoc.add(para);
+ }
+
+ pdfDoc.close();
+ br.close();
+ }
+
}
diff --git a/pdf/src/main/resources/html.html b/pdf/src/main/resources/html.html
new file mode 100644
index 0000000000..d3072c056c
--- /dev/null
+++ b/pdf/src/main/resources/html.html
@@ -0,0 +1,53 @@
+
+
+
+
+A very simple webpage
+
+
+
+A very simple webpage. This is an "h1" level header.
+
+This is a level h2 header.
+
+This is a level h6 header. Pretty small!
+
+This is a standard paragraph.
+
+Now I've aligned it in the center of the screen.
+
+Now aligned to the right
+
+Bold text
+
+Strongly emphasized text Can you tell the difference vs. bold?
+
+Italics
+
+Emphasized text Just like Italics!
+
+How about a nice ordered list!
+
+ - This little piggy went to market
+ - This little piggy went to SB228 class
+ - This little piggy went to an expensive restaurant in Downtown Palo Alto
+ - This little piggy ate too much at Indian Buffet.
+ - This little piggy got lost
+
+
+Unordered list
+
+ - First element
+ - Second element
+ - Third element
+
+
+
+And finally, how about some
Links?
+
+Remember, you can view the HTMl code from this or any other page by using the "View Page Source" command of your browser.
+
+
+
+
+
diff --git a/pdf/src/main/resources/txt.txt b/pdf/src/main/resources/txt.txt
new file mode 100644
index 0000000000..de0c36ae75
--- /dev/null
+++ b/pdf/src/main/resources/txt.txt
@@ -0,0 +1,3 @@
+Test
+Text
+ Test TEST
\ No newline at end of file
diff --git a/play-framework/README.md b/play-framework/README.md
new file mode 100644
index 0000000000..0fd13fba27
--- /dev/null
+++ b/play-framework/README.md
@@ -0,0 +1,4 @@
+###Relevant Articles:
+- [REST API with Play Framework in Java](http://www.baeldung.com/rest-api-with-play)
+- [Routing In Play Applications in Java](http://www.baeldung.com/routing-in-play)
+- [Introduction To Play In Java](http://www.baeldung.com/java-intro-to-the-play-framework)
diff --git a/pom.xml b/pom.xml
index bd626b3ad0..36b1a57773 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,5 +1,6 @@
-
+
4.0.0
com.baeldung
parent-modules
@@ -47,17 +48,20 @@
immutables
jackson
+ jackson-annotations
java-cassandra
+ javax-servlets
javaxval
jee7
jjwt
jpa-storedprocedure
- jsf
+ jsf
json-path
json
junit5
-
+
log4j
+ log-mdc
lombok
mapstruct
@@ -71,19 +75,19 @@
querydsl
- redis
+ redis
rest-assured
rest-testing
resteasy
selenium-junit-testng
- spring-akka
+ spring-akka
spring-all
spring-apache-camel
spring-autowire
spring-batch
spring-boot
- spring-cloud-data-flow
+ spring-cloud-data-flow
spring-cloud
spring-core
spring-cucumber
@@ -108,11 +112,13 @@
spring-katharsis
spring-mockito
spring-mvc-java
+ spring-mvc-forms
spring-mvc-no-xml
spring-mvc-tiles
spring-mvc-velocity
spring-mvc-web-vs-initializer
spring-mvc-xml
+ spring-mvc-simple
spring-openid
spring-protobuf
spring-quartz
@@ -131,7 +137,7 @@
spring-security-rest-custom
spring-security-rest-digest-auth
spring-security-rest-full
- spring-security-rest
+ spring-security-rest
spring-security-x509
spring-session
spring-spel
@@ -146,7 +152,7 @@
xml
xmlunit2
xstream
- pdf
-
+ pdf
+
\ No newline at end of file
diff --git a/querydsl/pom.xml b/querydsl/pom.xml
index 13528526ea..a9218e7751 100644
--- a/querydsl/pom.xml
+++ b/querydsl/pom.xml
@@ -16,10 +16,19 @@
UTF-8
1.8
4.12
- 4.3.1.RELEASE
- 5.2.1.Final
- 4.1.3
+ 4.3.4.RELEASE
+ 5.2.5.Final
+ 1.0.0.Final
+ 4.1.4
+ 2.3.4
+ 1.6
+ 1.4
+
1.7.21
+ 1.1.7
+
+ 3.6.0
+ 1.1.3
2.19.1
@@ -50,14 +59,14 @@
org.hibernate.javax.persistence
hibernate-jpa-2.1-api
- 1.0.0.Final
+ ${hibernate-jpa.version}
compile
commons-dbcp
commons-dbcp
- 1.4
+ ${commons-dbcp.version}
jar
compile
@@ -65,7 +74,7 @@
commons-pool
commons-pool
- 1.6
+ ${commons-pool.version}
jar
compile
@@ -74,7 +83,7 @@
org.hsqldb
hsqldb
- 2.3.4
+ ${hsqldb.version}
@@ -116,7 +125,7 @@
ch.qos.logback
logback-classic
- 1.1.7
+ ${logback.version}
org.slf4j
@@ -142,7 +151,7 @@
org.apache.maven.plugins
maven-compiler-plugin
- 3.5.1
+ ${maven-compiler-plugin.version}
${java.version}
${java.version}
@@ -154,7 +163,7 @@
com.mysema.maven
apt-maven-plugin
- 1.1.3
+ ${apt-maven-plugin.version}
diff --git a/redis/pom.xml b/redis/pom.xml
index a5d3af8097..e3affdd7ef 100644
--- a/redis/pom.xml
+++ b/redis/pom.xml
@@ -1,7 +1,6 @@
-
+
4.0.0
com.baeldung
@@ -15,13 +14,13 @@
redis.clients
jedis
- 2.8.1
+ ${jedis.version}
com.github.kstyrc
embedded-redis
- 0.6
+ ${embedded-redis.version}
@@ -38,19 +37,38 @@
org.apache.maven.plugins
maven-compiler-plugin
- 3.5.1
+ ${maven-compiler-plugin.version}
1.8
1.8
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+
+
+ **/*IntegrationTest.java
+ **/*LongRunningUnitTest.java
+ **/*ManualTest.java
+
+ true
+
+
+
UTF-8
+
+ 2.9.0
+ 0.6
+
4.12
+
+ 3.6.0
diff --git a/rest-assured/pom.xml b/rest-assured/pom.xml
index e2a2af9cd9..3d1abefeb1 100644
--- a/rest-assured/pom.xml
+++ b/rest-assured/pom.xml
@@ -10,106 +10,106 @@
javax.servlet
javax.servlet-api
- 3.1-b06
+ ${javax.servlet-api.version}
javax.servlet
servlet-api
- 2.5
+ ${servlet-api.version}
org.eclipse.jetty
jetty-security
- 9.2.0.M1
+ ${jetty.version}
org.eclipse.jetty
jetty-servlet
- 9.2.0.M1
+ ${jetty.version}
org.eclipse.jetty
jetty-servlets
- 9.2.0.M1
+ ${jetty.version}
org.eclipse.jetty
jetty-io
- 9.2.0.M1
+ ${jetty.version}
org.eclipse.jetty
jetty-http
- 9.2.0.M1
+ ${jetty.version}
org.eclipse.jetty
jetty-server
- 9.2.0.M1
+ ${jetty.version}
org.eclipse.jetty
jetty-util
- 9.2.0.M1
+ ${jetty.version}
org.slf4j
slf4j-api
- 1.7.21
+ ${slf4j.version}
log4j
log4j
- 1.2.17
+ ${log4j.version}
org.slf4j
slf4j-log4j12
- 1.7.21
+ ${slf4j.version}
commons-logging
commons-logging
- 1.2
+ ${commons-logging.version}
org.apache.httpcomponents
httpcore
- 4.4.5
+ ${httpcore.version}
org.apache.commons
commons-lang3
- 3.4
+ ${commons-lang3.version}
com.github.fge
uri-template
- 0.9
+ ${uri-template.version}
com.googlecode.libphonenumber
libphonenumber
- 7.4.5
+ ${libphonenumber.version}
javax.mail
mail
- 1.4.7
+ ${javax.mail.version}
joda-time
joda-time
- 2.9.4
+ ${joda-time.version}
@@ -126,13 +126,13 @@
com.github.fge
msg-simple
- 1.1
+ ${msg-simple.version}
com.github.fge
jackson-coreutils
- 1.8
+ ${jackson-coreutils.version}
@@ -143,63 +143,63 @@
com.github.fge
btf
- 1.2
+ ${btf.version}
org.apache.httpcomponents
httpclient
- 4.5.2
+ ${httpclient.version}
org.codehaus.groovy
groovy-all
- 2.4.7
+ ${groovy.version}
com.github.tomakehurst
wiremock
- 2.1.7
+ ${wiremock.version}
io.rest-assured
rest-assured
- 3.0.0
+ ${rest-assured.version}
test
io.rest-assured
json-schema-validator
- 3.0.0
+ ${rest-assured-json-schema-validator.version}
com.github.fge
json-schema-validator
- 2.2.6
+ ${github-json-schema-validator.version}
com.github.fge
json-schema-core
- 1.2.5
+ ${json-schema-core.version}
junit
junit
- 4.3
+ ${junit.version}
test
org.hamcrest
hamcrest-all
- 1.3
+ ${hamcrest.version}
commons-collections
commons-collections
- 3.2.2
+ ${commons-collections.version}
@@ -209,7 +209,7 @@
org.apache.maven.plugins
maven-compiler-plugin
- 3.3
+ ${maven-compiler-plugin.version}
8
8
@@ -219,8 +219,42 @@
- 2.8.3
+ 2.8.5
+ 1.8
19.0
+
+ 3.1.0
+ 2.5
+ 1.4.7
+ 9.4.0.v20161208
+
+ 1.2.17
+ 1.7.21
+
+ 3.5
+ 1.2
+ 3.2.2
+
+ 4.4.5
+ 4.5.2
+
+ 0.9
+ 8.0.0
+ 2.9.6
+ 1.1
+ 1.2
+ 2.4.7
+ 2.4.1
+
+ 2.2.6
+ 1.2.5
+
+ 1.3
+ 3.0.1
+ 3.0.1
+ 4.12
+
+ 3.6.0
diff --git a/rest-testing/pom.xml b/rest-testing/pom.xml
index 90c160af15..f7f94a49a6 100644
--- a/rest-testing/pom.xml
+++ b/rest-testing/pom.xml
@@ -20,7 +20,7 @@
commons-io
commons-io
- 2.4
+ ${commons-io.version}
@@ -106,20 +106,20 @@
com.github.tomakehurst
wiremock
- 1.58
+ ${wiremock.version}
test
info.cukes
cucumber-java
- 1.2.4
+ ${cucumber.version}
test
info.cukes
cucumber-junit
- 1.2.4
+ ${cucumber.version}
@@ -198,35 +198,33 @@
- 2.7.8
+ 2.8.5
- 1.7.13
- 1.1.3
-
-
- 5.1.3.Final
+ 1.7.21
+ 1.1.7
19.0
- 3.4
+ 3.5
+ 2.5
1.3
4.12
1.10.19
+ 2.9.0
+ 1.2.5
+ 2.4.1
- 4.4.1
- 4.5
+ 4.4.5
+ 4.5.2
- 2.9.0
- 3.5.1
+ 3.6.0
2.6
2.19.1
- 2.7
- 1.4.18
diff --git a/resteasy/pom.xml b/resteasy/pom.xml
index 04e8576e1f..f0bd8298f5 100644
--- a/resteasy/pom.xml
+++ b/resteasy/pom.xml
@@ -9,9 +9,11 @@
war
- 3.0.14.Final
+ 3.0.19.Final
+ 4.12
+ 2.5
2.19.1
- 1.6.0
+ 1.6.1
@@ -93,13 +95,13 @@
junit
junit
- 4.4
+ ${junit.version}
commons-io
commons-io
- 2.4
+ ${commons-io.version}
diff --git a/selenium-junit-testng/pom.xml b/selenium-junit-testng/pom.xml
index cc96ea8529..b4490f779b 100644
--- a/selenium-junit-testng/pom.xml
+++ b/selenium-junit-testng/pom.xml
@@ -9,7 +9,7 @@
maven-compiler-plugin
- 3.1
+ ${maven-compiler-plugin.version}
1.8
1.8
@@ -18,13 +18,14 @@
org.apache.maven.plugins
maven-surefire-plugin
- 2.19.1
+ ${maven-surefire-plugin.version}
true
**/*UnitTest.java
+ false
@@ -37,11 +38,12 @@
org.apache.maven.plugins
maven-surefire-plugin
- 2.19.1
+ ${maven-surefire-plugin.version}
**/*LiveTest.java
+ false
@@ -53,17 +55,26 @@
org.seleniumhq.selenium
selenium-java
- 3.0.1
+ ${selenium-java.version}
junit
junit
- 4.12
+ ${junit.version}
org.testng
testng
- 6.9.13.6
+ ${testng.version}
+
+
+ 4.12
+ 6.10
+ 3.0.1
+
+ 2.19.1
+ 3.6.0
+
\ No newline at end of file
diff --git a/selenium-junit-testng/src/main/java/com/baeldung/selenium/SeleniumExample.java b/selenium-junit-testng/src/main/java/com/baeldung/selenium/SeleniumExample.java
index 58d47c0162..b97f66e9dd 100644
--- a/selenium-junit-testng/src/main/java/com/baeldung/selenium/SeleniumExample.java
+++ b/selenium-junit-testng/src/main/java/com/baeldung/selenium/SeleniumExample.java
@@ -1,14 +1,13 @@
package main.java.com.baeldung.selenium;
-import java.util.List;
-import java.util.NoSuchElementException;
-import java.util.concurrent.TimeUnit;
-
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
+import java.util.List;
+import java.util.concurrent.TimeUnit;
+
public class SeleniumExample {
private WebDriver webDriver;
@@ -38,12 +37,12 @@ public class SeleniumExample {
private void closeOverlay() {
List webElementList = webDriver.findElements(By.tagName("a"));
- try {
- if (webElementList != null && !webElementList.isEmpty()) {
- webElementList.stream().filter(webElement -> "Close".equalsIgnoreCase(webElement.getAttribute("title"))).findAny().orElseThrow(NoSuchElementException::new).click();
- }
- } catch (NoSuchElementException exception) {
- exception.printStackTrace();
+ if (webElementList != null) {
+ webElementList.stream()
+ .filter(webElement -> "Close".equalsIgnoreCase(webElement.getAttribute("title")))
+ .filter(WebElement::isDisplayed)
+ .findAny()
+ .ifPresent(WebElement::click);
}
}
@@ -56,6 +55,6 @@ public class SeleniumExample {
}
public boolean isAuthorInformationAvailable() {
- return webDriver.findElement(By.xpath("//*[contains(text(), 'Eugen – an engineer')]")).isDisplayed();
+ return webDriver.findElement(By.xpath("//*[contains(text(), 'an engineer with a passion for teaching and building stuff on the web')]")).isDisplayed();
}
}
diff --git a/selenium-junit-testng/src/test/java/com/baeldung/selenium/junit/SeleniumWithJUnitLiveTest.java b/selenium-junit-testng/src/test/java/com/baeldung/selenium/junit/SeleniumWithJUnitLiveTest.java
index f8d9a5dada..180b3d9d33 100644
--- a/selenium-junit-testng/src/test/java/com/baeldung/selenium/junit/SeleniumWithJUnitLiveTest.java
+++ b/selenium-junit-testng/src/test/java/com/baeldung/selenium/junit/SeleniumWithJUnitLiveTest.java
@@ -26,16 +26,11 @@ public class SeleniumWithJUnitLiveTest {
@Test
public void whenAboutBaeldungIsLoaded_thenAboutEugenIsMentionedOnPage() {
- try {
seleniumExample.getAboutBaeldungPage();
String actualTitle = seleniumExample.getTitle();
assertNotNull(actualTitle);
assertEquals(actualTitle, expecteTilteAboutBaeldungPage);
assertTrue(seleniumExample.isAuthorInformationAvailable());
- } catch (Exception exception) {
- exception.printStackTrace();
- seleniumExample.closeWindow();
- }
}
}
diff --git a/selenium-junit-testng/src/test/java/com/baeldung/selenium/testng/SeleniumWithTestNGLiveTest.java b/selenium-junit-testng/src/test/java/com/baeldung/selenium/testng/SeleniumWithTestNGLiveTest.java
index 5ec9ade39f..bc8fc712bf 100644
--- a/selenium-junit-testng/src/test/java/com/baeldung/selenium/testng/SeleniumWithTestNGLiveTest.java
+++ b/selenium-junit-testng/src/test/java/com/baeldung/selenium/testng/SeleniumWithTestNGLiveTest.java
@@ -26,15 +26,10 @@ public class SeleniumWithTestNGLiveTest {
@Test
public void whenAboutBaeldungIsLoaded_thenAboutEugenIsMentionedOnPage() {
- try {
- seleniumExample.getAboutBaeldungPage();
- String actualTitle = seleniumExample.getTitle();
- assertNotNull(actualTitle);
- assertEquals(actualTitle, expecteTilteAboutBaeldungPage);
- assertTrue(seleniumExample.isAuthorInformationAvailable());
- } catch (Exception exception) {
- exception.printStackTrace();
- seleniumExample.closeWindow();
- }
+ seleniumExample.getAboutBaeldungPage();
+ String actualTitle = seleniumExample.getTitle();
+ assertNotNull(actualTitle);
+ assertEquals(actualTitle, expecteTilteAboutBaeldungPage);
+ assertTrue(seleniumExample.isAuthorInformationAvailable());
}
}
diff --git a/spring-akka/pom.xml b/spring-akka/pom.xml
index eb33ca4848..1a273b0fed 100644
--- a/spring-akka/pom.xml
+++ b/spring-akka/pom.xml
@@ -115,11 +115,11 @@
- 4.3.2.RELEASE
- 2.4.8
+ 4.3.4.RELEASE
+ 2.4.14
4.12
- 3.5.1
+ 3.6.0
2.19.1
diff --git a/spring-all/pom.xml b/spring-all/pom.xml
index 23f2531b51..e77bf0b284 100644
--- a/spring-all/pom.xml
+++ b/spring-all/pom.xml
@@ -11,7 +11,7 @@
org.springframework.boot
spring-boot-starter-parent
- 1.3.6.RELEASE
+ 1.4.2.RELEASE
@@ -134,7 +134,7 @@
org.assertj
assertj-core
- 3.5.1
+ ${assertj.version}
test
@@ -158,13 +158,13 @@
org.easymock
easymock
- 3.4
+ ${easymock.version}
test
org.ehcache
ehcache
- 3.1.3
+ ${ehcache.version}
@@ -273,42 +273,17 @@
- 4.3.1.RELEASE
- 4.0.4.RELEASE
- 3.20.0-GA
- 1.2
+ 4.3.4.RELEASE
+ 4.2.0.RELEASE
- 4.3.11.Final
- 5.1.38
-
-
- 1.7.13
- 1.1.3
-
-
- 5.2.2.Final
+ 5.2.5.Final
19.0
- 3.4
-
-
- 1.3
- 4.12
- 1.10.19
-
- 4.4.1
- 4.5
-
- 2.9.0
-
-
- 3.5.1
- 2.6
- 2.19.1
- 2.7
- 1.4.18
+ 3.1.3
+ 3.4
+ 3.6.1
diff --git a/spring-apache-camel/README.md b/spring-apache-camel/README.md
index 4015760f7d..ab7cf5c575 100644
--- a/spring-apache-camel/README.md
+++ b/spring-apache-camel/README.md
@@ -8,6 +8,7 @@ This article will demonstrate how to configure and use Apache Camel with Spring
Framework Versions:
diff --git a/spring-apache-camel/pom.xml b/spring-apache-camel/pom.xml
index fbea9b779d..4daa3c1e9a 100644
--- a/spring-apache-camel/pom.xml
+++ b/spring-apache-camel/pom.xml
@@ -10,26 +10,27 @@
2.16.1
- 4.2.4.RELEASE
- 1.7
- 4.1
+ 4.3.4.RELEASE
+ 2.19.1
+ 1.8
+ 4.12
-
+
junit
junit
${junit.version}
test
-
+
org.apache.camel
camel-core
${env.camel.version}
-
+
org.apache.camel
camel-spring
@@ -47,9 +48,13 @@
spring-context
${env.spring.version}
-
+
+ org.slf4j
+ slf4j-log4j12
+ 1.7.21
+
-
+
@@ -62,6 +67,22 @@
${java.version}