Skip to content

Commit fe01c87

Browse files
Merge remote-tracking branch 'upstream/master' into craedel-log4j2
2 parents 1646eb9 + cd23acd commit fe01c87

143 files changed

Lines changed: 17131 additions & 522 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎apache-fop/pom.xml‎

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@
9797
<version>8.0.2</version>
9898
</dependency>
9999

100+
<dependency>
101+
<groupId>org.dbdoclet</groupId>
102+
<artifactId>herold</artifactId>
103+
<version>6.1.0</version>
104+
<scope>system</scope>
105+
<systemPath>${basedir}/src/test/resources/jars/herold.jar</systemPath>
106+
</dependency>
107+
100108
<dependency>
101109
<groupId>net.sf.jtidy</groupId>
102110
<artifactId>jtidy</artifactId>
@@ -132,7 +140,8 @@
132140
<version>${maven-surefire-plugin.version}</version>
133141
<configuration>
134142
<excludes>
135-
<exclude>**/*IntegrationTest.java</exclude>
143+
<exclude>**/*IntegrationTest.java</exclude>
144+
<exclude>**/*LiveTest.java</exclude>
136145
</excludes>
137146
</configuration>
138147
</plugin>
@@ -141,6 +150,42 @@
141150

142151
</build>
143152

153+
<profiles>
154+
<profile>
155+
<id>integration</id>
156+
<build>
157+
<plugins>
158+
<plugin>
159+
<groupId>org.apache.maven.plugins</groupId>
160+
<artifactId>maven-surefire-plugin</artifactId>
161+
<executions>
162+
<execution>
163+
<phase>integration-test</phase>
164+
<goals>
165+
<goal>test</goal>
166+
</goals>
167+
<configuration>
168+
<excludes>
169+
<exclude>**/*ManualTest.java</exclude>
170+
</excludes>
171+
<includes>
172+
<include>**/*IntegrationTest.java</include>
173+
<exclude>**/*LiveTest.java</exclude>
174+
</includes>
175+
</configuration>
176+
</execution>
177+
</executions>
178+
<configuration>
179+
<systemPropertyVariables>
180+
<test.mime>json</test.mime>
181+
</systemPropertyVariables>
182+
</configuration>
183+
</plugin>
184+
</plugins>
185+
</build>
186+
</profile>
187+
</profiles>
188+
144189
<properties>
145190
<!-- persistence -->
146191
<hibernate.version>4.3.11.Final</hibernate.version>

apache-fop/src/test/java/org/baeldung/java/ApacheFOPConvertHTMLTest.java renamed to apache-fop/src/test/java/org/baeldung/java/ApacheFOPConvertHTMLIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import org.w3c.dom.Document;
2626
import org.w3c.tidy.Tidy;
2727

28-
public class ApacheFOPConvertHTMLTest {
28+
public class ApacheFOPConvertHTMLIntegrationTest {
2929
private String inputFile = "src/test/resources/input.html";
3030
private String style = "src/test/resources/xhtml2fo.xsl";
3131
private String style1 = "src/test/resources/docbook-xsl/fo/docbook.xsl";

apache-fop/src/test/java/org/baeldung/java/ApacheFOPHeroldTest.java renamed to apache-fop/src/test/java/org/baeldung/java/ApacheFOPHeroldLiveTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import org.junit.Test;
3131
import org.w3c.dom.Document;
3232

33-
public class ApacheFOPHeroldTest {
33+
public class ApacheFOPHeroldLiveTest {
3434
private String[] inputUrls = {// @formatter:off
3535
"http://www.baeldung.com/2011/10/20/bootstraping-a-web-application-with-spring-3-1-and-java-based-configuration-part-1/",
3636
"http://www.baeldung.com/2011/10/25/building-a-restful-web-service-with-spring-3-1-and-java-based-configuration-part-2/",

‎core-java/pom.xml‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,41 @@
279279
</plugins>
280280

281281
</build>
282+
283+
<profiles>
284+
<profile>
285+
<id>integration</id>
286+
<build>
287+
<plugins>
288+
<plugin>
289+
<groupId>org.apache.maven.plugins</groupId>
290+
<artifactId>maven-surefire-plugin</artifactId>
291+
<executions>
292+
<execution>
293+
<phase>integration-test</phase>
294+
<goals>
295+
<goal>test</goal>
296+
</goals>
297+
<configuration>
298+
<excludes>
299+
<exclude>**/*ManualTest.java</exclude>
300+
</excludes>
301+
<includes>
302+
<include>**/*IntegrationTest.java</include>
303+
</includes>
304+
</configuration>
305+
</execution>
306+
</executions>
307+
<configuration>
308+
<systemPropertyVariables>
309+
<test.mime>json</test.mime>
310+
</systemPropertyVariables>
311+
</configuration>
312+
</plugin>
313+
</plugins>
314+
</build>
315+
</profile>
316+
</profiles>
282317

283318
<properties>
284319
<!-- persistence -->

‎core-java/src/main/java/com/baeldung/printscreen/Screenshot.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ public Screenshot(String path) {
1414
}
1515

1616
public void getScreenshot(int timeToWait) throws Exception {
17-
Thread.sleep(timeToWait);
1817
Rectangle rectangle = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize());
1918
Robot robot = new Robot();
2019
BufferedImage img = robot.createScreenCapture(rectangle);

‎core-java/src/main/java/org/baeldung/equalshashcode/entities/ComplexClass.java‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package org.baeldung.equalshashcode.entities;
22

3-
import java.util.ArrayList;
4-
import java.util.HashSet;
53
import java.util.List;
64
import java.util.Set;
75

@@ -10,7 +8,7 @@ public class ComplexClass {
108
private List<?> genericList;
119
private Set<Integer> integerSet;
1210

13-
public ComplexClass(ArrayList<?> genericArrayList, HashSet<Integer> integerHashSet) {
11+
public ComplexClass(List<?> genericArrayList, Set<Integer> integerHashSet) {
1412
super();
1513
this.genericList = genericArrayList;
1614
this.integerSet = integerHashSet;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello World from fileTest.txt!!!

core-java/src/test/java/com/baeldung/CharToStringTest.java renamed to core-java/src/test/java/com/baeldung/CharToStringUnitTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import static org.assertj.core.api.Assertions.assertThat;
66

7-
public class CharToStringTest {
7+
public class CharToStringUnitTest {
88

99
@Test
1010
public void givenChar_whenCallingStringValueOf_shouldConvertToString() {

core-java/src/test/java/com/baeldung/collectors/Java8CollectorsTest.java renamed to core-java/src/test/java/com/baeldung/collectors/Java8CollectorsUnitTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
import static org.assertj.core.api.Assertions.assertThat;
3737
import static org.assertj.core.api.Assertions.assertThatThrownBy;
3838

39-
public class Java8CollectorsTest {
39+
public class Java8CollectorsUnitTest {
4040

4141
private final List<String> givenList = Arrays.asList("a", "bb", "ccc", "dd");
4242

core-java/src/test/java/com/baeldung/datetime/UseLocalDateTimeTest.java renamed to core-java/src/test/java/com/baeldung/datetime/UseLocalDateTimeUnitTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import org.junit.Assert;
88
import org.junit.Test;
99

10-
public class UseLocalDateTimeTest {
10+
public class UseLocalDateTimeUnitTest {
1111

1212
UseLocalDateTime useLocalDateTime = new UseLocalDateTime();
1313

0 commit comments

Comments
 (0)