Skip to content

Commit 698e781

Browse files
author
Eugen Paraschiv
committed
testing cleanup
1 parent 8d633d6 commit 698e781

7 files changed

Lines changed: 139 additions & 145 deletions

File tree

‎libraries/helloWorld.docx‎

-5 Bytes
Binary file not shown.

‎libraries/pom.xml‎

Lines changed: 132 additions & 134 deletions
Original file line numberDiff line numberDiff line change
@@ -1,122 +1,17 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<artifactId>libraries</artifactId>
5+
<name>libraries</name>
6+
47
<parent>
58
<artifactId>parent-modules</artifactId>
69
<groupId>com.baeldung</groupId>
710
<version>1.0.0-SNAPSHOT</version>
811
</parent>
9-
<modelVersion>4.0.0</modelVersion>
10-
<artifactId>libraries</artifactId>
11-
<name>libraries</name>
12-
<build>
13-
<plugins>
14-
<plugin>
15-
<groupId>org.apache.maven.plugins</groupId>
16-
<artifactId>maven-dependency-plugin</artifactId>
17-
<dependencies>
18-
<dependency>
19-
<groupId>org.apache.felix</groupId>
20-
<artifactId>maven-bundle-plugin</artifactId>
21-
<version>3.3.0</version>
22-
<type>maven-plugin</type>
23-
</dependency>
24-
</dependencies>
25-
<extensions>true</extensions>
26-
</plugin>
27-
<plugin>
28-
<artifactId>maven-failsafe-plugin</artifactId>
29-
<version>2.20</version>
30-
<configuration>
31-
<systemProperties>
32-
<webdriver.chrome.driver>chromedriver</webdriver.chrome.driver>
33-
</systemProperties>
34-
</configuration>
35-
</plugin>
36-
<plugin>
37-
<groupId>net.serenity-bdd.maven.plugins</groupId>
38-
<artifactId>serenity-maven-plugin</artifactId>
39-
<version>${serenity.plugin.version}</version>
40-
<executions>
41-
<execution>
42-
<id>serenity-reports</id>
43-
<phase>post-integration-test</phase>
44-
<goals>
45-
<goal>aggregate</goal>
46-
</goals>
47-
</execution>
48-
</executions>
49-
</plugin>
50-
<!-- JDO Plugin -->
51-
<plugin>
52-
<groupId>org.datanucleus</groupId>
53-
<artifactId>datanucleus-maven-plugin</artifactId>
54-
<version>5.0.2</version>
55-
<configuration>
56-
<api>JDO</api>
57-
<props>${basedir}/datanucleus.properties</props>
58-
<log4jConfiguration>${basedir}/log4j.properties</log4jConfiguration>
59-
<verbose>true</verbose>
60-
<fork>false</fork>
61-
<!-- Solve windows line too long error -->
62-
</configuration>
63-
<executions>
64-
<execution>
65-
<phase>process-classes</phase>
66-
<goals>
67-
<goal>enhance</goal>
68-
</goals>
69-
</execution>
70-
</executions>
71-
</plugin>
72-
<!-- Neuroph -->
73-
<plugin>
74-
<groupId>org.apache.maven.plugins</groupId>
75-
<artifactId>maven-jar-plugin</artifactId>
76-
<version>3.0.2</version>
77-
<configuration>
78-
<excludes>
79-
<exclude>**/log4j.properties</exclude>
80-
</excludes>
81-
<archive>
82-
<manifest>
83-
<mainClass>com.baeldung.neuroph.NeurophXOR</mainClass>
84-
</manifest>
85-
</archive>
86-
</configuration>
87-
</plugin>
88-
<plugin>
89-
<groupId>org.apache.maven.plugins</groupId>
90-
<artifactId>maven-surefire-plugin</artifactId>
91-
<version>2.18.1</version>
92-
<executions>
93-
<execution>
94-
<id>test</id>
95-
<phase>test</phase>
96-
<goals>
97-
<goal>test</goal>
98-
</goals>
99-
<configuration>
100-
<includes>
101-
<include>test/java/com/baeldung/neuroph/XORTest.java</include>
102-
</includes>
103-
</configuration>
104-
</execution>
105-
</executions>
106-
</plugin>
107-
<!-- /Neuroph -->
108-
<plugin>
109-
<artifactId>maven-compiler-plugin</artifactId>
110-
<version>3.7.0</version>
111-
<configuration>
112-
<source>1.8</source>
113-
<target>1.8</target>
114-
</configuration>
115-
</plugin>
116-
</plugins>
117-
</build>
12+
11813
<dependencies>
119-
<!-- https://mvnrepository.com/artifact/org.asynchttpclient/async-http-client -->
14+
<!-- https://mvnrepository.com/artifact/org.asynchttpclient/async-http-client -->
12015
<dependency>
12116
<groupId>org.asynchttpclient</groupId>
12217
<artifactId>async-http-client</artifactId>
@@ -200,11 +95,11 @@
20095
<artifactId>jetty-servlet</artifactId>
20196
<version>${jetty.version}</version>
20297
</dependency>
203-
<dependency>
204-
<groupId>org.eclipse.jetty</groupId>
205-
<artifactId>jetty-webapp</artifactId>
206-
<version>${jetty.version}</version>
207-
</dependency>
98+
<dependency>
99+
<groupId>org.eclipse.jetty</groupId>
100+
<artifactId>jetty-webapp</artifactId>
101+
<version>${jetty.version}</version>
102+
</dependency>
208103
<dependency>
209104
<groupId>rome</groupId>
210105
<artifactId>rome</artifactId>
@@ -640,22 +535,22 @@
640535
<version>${googleclient.version}</version>
641536
</dependency>
642537
<dependency>
643-
<groupId>com.google.http-client</groupId>
644-
<artifactId>google-http-client-jackson2</artifactId>
645-
<version>${googleclient.version}</version>
538+
<groupId>com.google.http-client</groupId>
539+
<artifactId>google-http-client-jackson2</artifactId>
540+
<version>${googleclient.version}</version>
646541
</dependency>
647542
<dependency>
648-
<groupId>com.google.http-client</groupId>
649-
<artifactId>google-http-client-gson</artifactId>
650-
<version>${googleclient.version}</version>
543+
<groupId>com.google.http-client</groupId>
544+
<artifactId>google-http-client-gson</artifactId>
545+
<version>${googleclient.version}</version>
651546
</dependency>
652547
<dependency>
653548
<groupId>org.infinispan</groupId>
654549
<artifactId>infinispan-core</artifactId>
655550
<version>${infinispan.version}</version>
656551
</dependency>
657552

658-
<!--Java Docker API Client-->
553+
<!--Java Docker API Client -->
659554
<dependency>
660555
<groupId>com.github.docker-java</groupId>
661556
<artifactId>docker-java</artifactId>
@@ -680,23 +575,23 @@
680575
<artifactId>jersey-client</artifactId>
681576
<version>1.19.4</version>
682577
</dependency>
683-
<!--Java Docker API Client-->
578+
<!--Java Docker API Client -->
684579

685580
<!-- google api -->
686581
<dependency>
687-
<groupId>com.google.api-client</groupId>
688-
<artifactId>google-api-client</artifactId>
689-
<version>${google-api.version}</version>
582+
<groupId>com.google.api-client</groupId>
583+
<artifactId>google-api-client</artifactId>
584+
<version>${google-api.version}</version>
690585
</dependency>
691586
<dependency>
692-
<groupId>com.google.oauth-client</groupId>
693-
<artifactId>google-oauth-client-jetty</artifactId>
694-
<version>${google-api.version}</version>
587+
<groupId>com.google.oauth-client</groupId>
588+
<artifactId>google-oauth-client-jetty</artifactId>
589+
<version>${google-api.version}</version>
695590
</dependency>
696591
<dependency>
697-
<groupId>com.google.apis</groupId>
698-
<artifactId>google-api-services-sheets</artifactId>
699-
<version>${google-sheets.version}</version>
592+
<groupId>com.google.apis</groupId>
593+
<artifactId>google-api-services-sheets</artifactId>
594+
<version>${google-sheets.version}</version>
700595
</dependency>
701596
<dependency>
702597
<groupId>org.apache.kafka</groupId>
@@ -753,6 +648,108 @@
753648
<url>https://repository.apache.org/content/groups/staging</url>
754649
</repository>
755650
</repositories>
651+
652+
653+
<build>
654+
<plugins>
655+
<plugin>
656+
<groupId>org.apache.maven.plugins</groupId>
657+
<artifactId>maven-dependency-plugin</artifactId>
658+
<dependencies>
659+
<dependency>
660+
<groupId>org.apache.felix</groupId>
661+
<artifactId>maven-bundle-plugin</artifactId>
662+
<version>3.3.0</version>
663+
<type>maven-plugin</type>
664+
</dependency>
665+
</dependencies>
666+
<extensions>true</extensions>
667+
</plugin>
668+
<plugin>
669+
<artifactId>maven-failsafe-plugin</artifactId>
670+
<version>2.20</version>
671+
<configuration>
672+
<systemProperties>
673+
<webdriver.chrome.driver>chromedriver</webdriver.chrome.driver>
674+
</systemProperties>
675+
</configuration>
676+
</plugin>
677+
<plugin>
678+
<groupId>net.serenity-bdd.maven.plugins</groupId>
679+
<artifactId>serenity-maven-plugin</artifactId>
680+
<version>${serenity.plugin.version}</version>
681+
<executions>
682+
<execution>
683+
<id>serenity-reports</id>
684+
<phase>post-integration-test</phase>
685+
<goals>
686+
<goal>aggregate</goal>
687+
</goals>
688+
</execution>
689+
</executions>
690+
</plugin>
691+
<!-- JDO Plugin -->
692+
<plugin>
693+
<groupId>org.datanucleus</groupId>
694+
<artifactId>datanucleus-maven-plugin</artifactId>
695+
<version>5.0.2</version>
696+
<configuration>
697+
<api>JDO</api>
698+
<props>${basedir}/datanucleus.properties</props>
699+
<log4jConfiguration>${basedir}/log4j.properties</log4jConfiguration>
700+
<verbose>true</verbose>
701+
<fork>false</fork>
702+
<!-- Solve windows line too long error -->
703+
</configuration>
704+
<executions>
705+
<execution>
706+
<phase>process-classes</phase>
707+
<goals>
708+
<goal>enhance</goal>
709+
</goals>
710+
</execution>
711+
</executions>
712+
</plugin>
713+
<!-- Neuroph -->
714+
<plugin>
715+
<groupId>org.apache.maven.plugins</groupId>
716+
<artifactId>maven-jar-plugin</artifactId>
717+
<version>3.0.2</version>
718+
<configuration>
719+
<excludes>
720+
<exclude>**/log4j.properties</exclude>
721+
</excludes>
722+
<archive>
723+
<manifest>
724+
<mainClass>com.baeldung.neuroph.NeurophXOR</mainClass>
725+
</manifest>
726+
</archive>
727+
</configuration>
728+
</plugin>
729+
<plugin>
730+
<groupId>org.apache.maven.plugins</groupId>
731+
<artifactId>maven-surefire-plugin</artifactId>
732+
<version>2.18.1</version>
733+
<configuration>
734+
<excludes>
735+
<exclude>**/*IntegrationTest.java</exclude>
736+
<exclude>**/*LiveTest.java</exclude>
737+
</excludes>
738+
</configuration>
739+
</plugin>
740+
741+
<!-- /Neuroph -->
742+
<plugin>
743+
<artifactId>maven-compiler-plugin</artifactId>
744+
<version>3.7.0</version>
745+
<configuration>
746+
<source>1.8</source>
747+
<target>1.8</target>
748+
</configuration>
749+
</plugin>
750+
</plugins>
751+
</build>
752+
756753
<properties>
757754
<googleclient.version>1.23.0</googleclient.version>
758755
<crdt.version>0.1.0</crdt.version>
@@ -818,4 +815,5 @@
818815
<async.http.client.version>2.2.0</async.http.client.version>
819816
<infinispan.version>9.1.5.Final</infinispan.version>
820817
</properties>
818+
821819
</project>

libraries/src/test/java/com/baeldung/infinispan/service/HelloWorldServiceUnitTest.java renamed to libraries/src/test/java/com/baeldung/infinispan/service/HelloWorldServiceIntegrationTest.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import static org.assertj.core.api.Java6Assertions.assertThat;
77

8-
public class HelloWorldServiceUnitTest extends ConfigurationTest {
8+
public class HelloWorldServiceIntegrationTest extends ConfigurationTest {
99

1010
@Test
1111
public void whenGetIsCalledTwoTimes_thenTheSecondShouldHitTheCache() {
@@ -23,7 +23,6 @@ public void whenGetIsCalledTwoTimesQuickly_thenTheSecondShouldHitTheCache() {
2323

2424
@Test
2525
public void whenGetIsCalledTwoTimesSparsely_thenNeitherShouldHitTheCache() throws InterruptedException {
26-
2726
assertThat(timeThis(() -> helloWorldService.findExpiringHelloWorld())).isGreaterThanOrEqualTo(1000);
2827

2928
Thread.sleep(1100);
@@ -33,7 +32,6 @@ public void whenGetIsCalledTwoTimesSparsely_thenNeitherShouldHitTheCache() throw
3332

3433
@Test
3534
public void givenOneEntryIsConfigured_whenTwoAreAdded_thenFirstShouldntBeAvailable() {
36-
3735
assertThat(timeThis(() -> helloWorldService.findEvictingHelloWorld("key 1"))).isGreaterThanOrEqualTo(1000);
3836

3937
assertThat(timeThis(() -> helloWorldService.findEvictingHelloWorld("key 2"))).isGreaterThanOrEqualTo(1000);
@@ -43,13 +41,11 @@ public void givenOneEntryIsConfigured_whenTwoAreAdded_thenFirstShouldntBeAvailab
4341

4442
@Test
4543
public void givenOneEntryIsConfigured_whenTwoAreAdded_thenTheFirstShouldBeAvailable() {
46-
4744
assertThat(timeThis(() -> helloWorldService.findPassivatingHelloWorld("key 1"))).isGreaterThanOrEqualTo(1000);
4845

4946
assertThat(timeThis(() -> helloWorldService.findPassivatingHelloWorld("key 2"))).isGreaterThanOrEqualTo(1000);
5047

5148
assertThat(timeThis(() -> helloWorldService.findPassivatingHelloWorld("key 1"))).isLessThan(100);
52-
5349
}
5450

5551
}

libraries/src/test/java/com/baeldung/infinispan/service/TransactionalServiceUnitTest.java renamed to libraries/src/test/java/com/baeldung/infinispan/service/TransactionalServiceIntegrationTest.java

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

66
import static org.assertj.core.api.Java6Assertions.assertThat;
77

8-
public class TransactionalServiceUnitTest extends ConfigurationTest {
8+
public class TransactionalServiceIntegrationTest extends ConfigurationTest {
99

1010
@Test
1111
public void whenLockingAnEntry_thenItShouldBeInaccessible() throws InterruptedException {

libraries/src/test/java/com/baeldung/jcache/EntryProcessorTest.java renamed to libraries/src/test/java/com/baeldung/jcache/EntryProcessorIntegrationTest.java

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

1313
import static org.junit.Assert.assertEquals;
1414

15-
public class EntryProcessorTest {
15+
public class EntryProcessorIntegrationTest {
1616

1717
private static final String CACHE_NAME = "MyCache";
1818

0 commit comments

Comments
 (0)