[JAVA-22519] Move articles from generic libraries module to specific library modules (#15416)
This commit is contained in:
parent
51e9f6cf37
commit
5e4ca88972
7
akka-modules/akka-actors/README.md
Normal file
7
akka-modules/akka-actors/README.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
## Akka HTTP
|
||||||
|
|
||||||
|
This module contains articles about Akka actors.
|
||||||
|
|
||||||
|
### Relevant articles:
|
||||||
|
|
||||||
|
- [Introduction to Akka Actors in Java](https://www.baeldung.com/akka-actors-java)
|
33
akka-modules/akka-actors/pom.xml
Normal file
33
akka-modules/akka-actors/pom.xml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<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">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<artifactId>akka-actors</artifactId>
|
||||||
|
<name>akka-actors</name>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<groupId>com.baeldung</groupId>
|
||||||
|
<artifactId>akka-modules</artifactId>
|
||||||
|
<version>1.0.0-SNAPSHOT</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.typesafe.akka</groupId>
|
||||||
|
<artifactId>akka-actor_${scala.version}</artifactId>
|
||||||
|
<version>${typesafe-akka.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.typesafe.akka</groupId>
|
||||||
|
<artifactId>akka-testkit_${scala.version}</artifactId>
|
||||||
|
<version>${typesafe-akka.version}</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<typesafe-akka.version>2.5.11</typesafe-akka.version>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
</project>
|
@ -1,4 +1,4 @@
|
|||||||
package com.baeldung.akka;
|
package com.baeldung.akkaactors;
|
||||||
|
|
||||||
import akka.actor.AbstractActor;
|
import akka.actor.AbstractActor;
|
||||||
import akka.actor.Props;
|
import akka.actor.Props;
|
@ -1,4 +1,4 @@
|
|||||||
package com.baeldung.akka;
|
package com.baeldung.akkaactors;
|
||||||
|
|
||||||
import akka.actor.AbstractActor;
|
import akka.actor.AbstractActor;
|
||||||
import akka.event.Logging;
|
import akka.event.Logging;
|
@ -1,4 +1,4 @@
|
|||||||
package com.baeldung.akka;
|
package com.baeldung.akkaactors;
|
||||||
|
|
||||||
import akka.actor.AbstractActor;
|
import akka.actor.AbstractActor;
|
||||||
import akka.actor.Props;
|
import akka.actor.Props;
|
@ -1,4 +1,4 @@
|
|||||||
package com.baeldung.akka;
|
package com.baeldung.akkaactors;
|
||||||
|
|
||||||
import akka.actor.AbstractActor;
|
import akka.actor.AbstractActor;
|
||||||
import akka.actor.ActorRef;
|
import akka.actor.ActorRef;
|
@ -1,4 +1,4 @@
|
|||||||
package com.baeldung.akka;
|
package com.baeldung.akkaactors;
|
||||||
|
|
||||||
import akka.actor.AbstractActor;
|
import akka.actor.AbstractActor;
|
||||||
import akka.event.Logging;
|
import akka.event.Logging;
|
@ -1,4 +1,4 @@
|
|||||||
package com.baeldung.akka;
|
package com.baeldung.akkaactors;
|
||||||
|
|
||||||
import akka.actor.ActorRef;
|
import akka.actor.ActorRef;
|
||||||
import akka.actor.ActorSystem;
|
import akka.actor.ActorSystem;
|
@ -14,6 +14,7 @@
|
|||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
|
<module>akka-actors</module>
|
||||||
<module>akka-http</module>
|
<module>akka-http</module>
|
||||||
<module>akka-streams</module>
|
<module>akka-streams</module>
|
||||||
<module>spring-akka</module>
|
<module>spring-akka</module>
|
||||||
|
@ -7,3 +7,4 @@ This module contains articles about the Java Microbenchmark Harness (JMH).
|
|||||||
- [Microbenchmarking with Java](https://www.baeldung.com/java-microbenchmark-harness)
|
- [Microbenchmarking with Java](https://www.baeldung.com/java-microbenchmark-harness)
|
||||||
- [A Guide to False Sharing and @Contended](https://www.baeldung.com/java-false-sharing-contended)
|
- [A Guide to False Sharing and @Contended](https://www.baeldung.com/java-false-sharing-contended)
|
||||||
- [Performance Comparison of boolean[] vs BitSet](https://www.baeldung.com/java-boolean-array-bitset-performance)
|
- [Performance Comparison of boolean[] vs BitSet](https://www.baeldung.com/java-boolean-array-bitset-performance)
|
||||||
|
- [How to Warm Up the JVM](https://www.baeldung.com/java-jvm-warmup)
|
||||||
|
@ -12,8 +12,7 @@ Remember, for advanced libraries like [Jackson](/jackson) and [JUnit](/testing-m
|
|||||||
- [Guide to Classgraph Library](https://www.baeldung.com/classgraph)
|
- [Guide to Classgraph Library](https://www.baeldung.com/classgraph)
|
||||||
- [Templating with Handlebars](https://www.baeldung.com/handlebars)
|
- [Templating with Handlebars](https://www.baeldung.com/handlebars)
|
||||||
- [A Guide to Crawler4j](https://www.baeldung.com/crawler4j)
|
- [A Guide to Crawler4j](https://www.baeldung.com/crawler4j)
|
||||||
- [Key Value Store with Chronicle Map](https://www.baeldung.com/java-chronicle-map)
|
|
||||||
- [Guide to MapDB](https://www.baeldung.com/mapdb)
|
|
||||||
- [A Guide to Apache Mesos](https://www.baeldung.com/apache-mesos)
|
- [A Guide to Apache Mesos](https://www.baeldung.com/apache-mesos)
|
||||||
|
- [Guide to MapDB](https://www.baeldung.com/mapdb)
|
||||||
- More articles [[<-- prev]](/libraries) [[next -->]](/libraries-3)
|
- More articles [[<-- prev]](/libraries) [[next -->]](/libraries-3)
|
||||||
|
|
||||||
|
@ -13,11 +13,6 @@
|
|||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
|
||||||
<groupId>org.mapdb</groupId>
|
|
||||||
<artifactId>mapdb</artifactId>
|
|
||||||
<version>${mapdb.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.github.classgraph</groupId>
|
<groupId>io.github.classgraph</groupId>
|
||||||
<artifactId>classgraph</artifactId>
|
<artifactId>classgraph</artifactId>
|
||||||
@ -41,17 +36,6 @@
|
|||||||
<artifactId>spring-boot-starter</artifactId>
|
<artifactId>spring-boot-starter</artifactId>
|
||||||
<version>${spring-boot-starter.version}</version>
|
<version>${spring-boot-starter.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>net.openhft</groupId>
|
|
||||||
<artifactId>chronicle-map</artifactId>
|
|
||||||
<version>${chronicle.map.version}</version>
|
|
||||||
<exclusions>
|
|
||||||
<exclusion>
|
|
||||||
<groupId>com.sun.java</groupId>
|
|
||||||
<artifactId>tools</artifactId>
|
|
||||||
</exclusion>
|
|
||||||
</exclusions>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>edu.uci.ics</groupId>
|
<groupId>edu.uci.ics</groupId>
|
||||||
<artifactId>crawler4j</artifactId>
|
<artifactId>crawler4j</artifactId>
|
||||||
@ -93,6 +77,11 @@
|
|||||||
<artifactId>je</artifactId>
|
<artifactId>je</artifactId>
|
||||||
<version>18.3.12</version>
|
<version>18.3.12</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.mapdb</groupId>
|
||||||
|
<artifactId>mapdb</artifactId>
|
||||||
|
<version>${mapdb.version}</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
@ -100,10 +89,6 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<version>${maven-surefire-plugin.version}</version>
|
|
||||||
<configuration>
|
|
||||||
<argLine>--add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED</argLine>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
@ -112,7 +97,6 @@
|
|||||||
<mapdb.version>3.0.8</mapdb.version>
|
<mapdb.version>3.0.8</mapdb.version>
|
||||||
<classgraph.version>4.8.153</classgraph.version>
|
<classgraph.version>4.8.153</classgraph.version>
|
||||||
<jbpm.version>7.20.0.Final</jbpm.version>
|
<jbpm.version>7.20.0.Final</jbpm.version>
|
||||||
<chronicle.map.version>3.24ea1</chronicle.map.version>
|
|
||||||
<crawler4j.version>4.4.0</crawler4j.version>
|
<crawler4j.version>4.4.0</crawler4j.version>
|
||||||
<spring-boot-starter.version>2.7.8</spring-boot-starter.version>
|
<spring-boot-starter.version>2.7.8</spring-boot-starter.version>
|
||||||
<mesos.library.version>1.11.0</mesos.library.version>
|
<mesos.library.version>1.11.0</mesos.library.version>
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
package com.baeldung.mapdb;
|
package com.baeldung.mapdb;
|
||||||
|
|
||||||
|
import static junit.framework.Assert.assertEquals;
|
||||||
|
|
||||||
|
import java.util.NavigableSet;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.mapdb.DB;
|
import org.mapdb.DB;
|
||||||
import org.mapdb.DBMaker;
|
import org.mapdb.DBMaker;
|
||||||
import org.mapdb.Serializer;
|
import org.mapdb.Serializer;
|
||||||
|
|
||||||
import java.util.NavigableSet;
|
|
||||||
|
|
||||||
import static junit.framework.Assert.assertEquals;
|
|
||||||
|
|
||||||
public class CollectionsUnitTest {
|
public class CollectionsUnitTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
package com.baeldung.mapdb;
|
package com.baeldung.mapdb;
|
||||||
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
import org.junit.Test;
|
|
||||||
import org.mapdb.*;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
import org.junit.jupiter.api.Test;
|
||||||
|
import org.mapdb.DB;
|
||||||
import static junit.framework.Assert.assertEquals;
|
import org.mapdb.DBMaker;
|
||||||
|
import org.mapdb.HTreeMap;
|
||||||
|
import org.mapdb.Serializer;
|
||||||
|
|
||||||
public class HTreeMapUnitTest {
|
public class HTreeMapUnitTest {
|
||||||
|
|
||||||
|
@ -1,25 +1,25 @@
|
|||||||
package com.baeldung.mapdb;
|
package com.baeldung.mapdb;
|
||||||
|
|
||||||
import org.junit.Test;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
import org.mapdb.DB;
|
import org.mapdb.DB;
|
||||||
import org.mapdb.DBMaker;
|
import org.mapdb.DBMaker;
|
||||||
import org.mapdb.HTreeMap;
|
import org.mapdb.HTreeMap;
|
||||||
|
|
||||||
import java.util.concurrent.ConcurrentMap;
|
|
||||||
|
|
||||||
import static junit.framework.Assert.assertEquals;
|
|
||||||
|
|
||||||
public class HelloBaeldungUnitTest {
|
public class HelloBaeldungUnitTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenInMemoryDBInstantiateCorrectly_whenDataSavedAndRetrieved_checkRetrievalCorrect() {
|
public void givenInMemoryDBInstantiateCorrectly_whenDataSavedAndRetrieved_checkRetrievalCorrect() {
|
||||||
|
|
||||||
DB db = DBMaker.memoryDB().make();
|
DB db = DBMaker.memoryDB()
|
||||||
|
.make();
|
||||||
|
|
||||||
String welcomeMessageKey = "Welcome Message";
|
String welcomeMessageKey = "Welcome Message";
|
||||||
String welcomeMessageString = "Hello Baeldung!";
|
String welcomeMessageString = "Hello Baeldung!";
|
||||||
|
|
||||||
HTreeMap myMap = db.hashMap("myMap").createOrOpen();
|
HTreeMap myMap = db.hashMap("myMap")
|
||||||
|
.createOrOpen();
|
||||||
myMap.put(welcomeMessageKey, welcomeMessageString);
|
myMap.put(welcomeMessageKey, welcomeMessageString);
|
||||||
|
|
||||||
String welcomeMessageFromDB = (String) myMap.get(welcomeMessageKey);
|
String welcomeMessageFromDB = (String) myMap.get(welcomeMessageKey);
|
||||||
@ -32,12 +32,14 @@ public class HelloBaeldungUnitTest {
|
|||||||
@Test
|
@Test
|
||||||
public void givenInFileDBInstantiateCorrectly_whenDataSavedAndRetrieved_checkRetrievalCorrect() {
|
public void givenInFileDBInstantiateCorrectly_whenDataSavedAndRetrieved_checkRetrievalCorrect() {
|
||||||
|
|
||||||
DB db = DBMaker.fileDB("file.db").make();
|
DB db = DBMaker.fileDB("file.db")
|
||||||
|
.make();
|
||||||
|
|
||||||
String welcomeMessageKey = "Welcome Message";
|
String welcomeMessageKey = "Welcome Message";
|
||||||
String welcomeMessageString = "Hello Baeldung!";
|
String welcomeMessageString = "Hello Baeldung!";
|
||||||
|
|
||||||
HTreeMap myMap = db.hashMap("myMap").createOrOpen();
|
HTreeMap myMap = db.hashMap("myMap")
|
||||||
|
.createOrOpen();
|
||||||
myMap.put(welcomeMessageKey, welcomeMessageString);
|
myMap.put(welcomeMessageKey, welcomeMessageString);
|
||||||
|
|
||||||
String welcomeMessageFromDB = (String) myMap.get(welcomeMessageKey);
|
String welcomeMessageFromDB = (String) myMap.get(welcomeMessageKey);
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
package com.baeldung.mapdb;
|
package com.baeldung.mapdb;
|
||||||
|
|
||||||
import org.junit.Test;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
import org.mapdb.DB;
|
import org.mapdb.DB;
|
||||||
import org.mapdb.DBMaker;
|
import org.mapdb.DBMaker;
|
||||||
import org.mapdb.HTreeMap;
|
import org.mapdb.HTreeMap;
|
||||||
import org.mapdb.Serializer;
|
import org.mapdb.Serializer;
|
||||||
|
|
||||||
import static junit.framework.Assert.assertEquals;
|
|
||||||
|
|
||||||
public class InMemoryModesUnitTest {
|
public class InMemoryModesUnitTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
package com.baeldung.mapdb;
|
package com.baeldung.mapdb;
|
||||||
|
|
||||||
import org.junit.Test;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
import org.mapdb.Serializer;
|
import org.mapdb.Serializer;
|
||||||
import org.mapdb.SortedTableMap;
|
import org.mapdb.SortedTableMap;
|
||||||
import org.mapdb.volume.MappedFileVol;
|
import org.mapdb.volume.MappedFileVol;
|
||||||
import org.mapdb.volume.Volume;
|
import org.mapdb.volume.Volume;
|
||||||
|
|
||||||
import static junit.framework.Assert.assertEquals;
|
|
||||||
|
|
||||||
public class SortedTableMapUnitTest {
|
public class SortedTableMapUnitTest {
|
||||||
|
|
||||||
private static final String VOLUME_LOCATION = "sortedTableMapVol.db";
|
private static final String VOLUME_LOCATION = "sortedTableMapVol.db";
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
package com.baeldung.mapdb;
|
package com.baeldung.mapdb;
|
||||||
|
|
||||||
import org.junit.Test;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
import org.mapdb.DB;
|
|
||||||
import org.mapdb.DBMaker;
|
|
||||||
import org.mapdb.Serializer;
|
|
||||||
|
|
||||||
import java.util.NavigableSet;
|
import java.util.NavigableSet;
|
||||||
|
|
||||||
import static junit.framework.Assert.assertEquals;
|
import org.junit.jupiter.api.Test;
|
||||||
|
import org.mapdb.DB;
|
||||||
|
import org.mapdb.DBMaker;
|
||||||
|
import org.mapdb.Serializer;
|
||||||
|
|
||||||
public class TransactionsUnitTest {
|
public class TransactionsUnitTest {
|
||||||
|
|
||||||
|
@ -8,10 +8,7 @@ The code examples related to different libraries are each in their own module.
|
|||||||
Remember, for advanced libraries like [Jackson](/jackson) and [JUnit](/testing-modules) we already have separate modules. Please make sure to have a look at the existing modules in such cases.
|
Remember, for advanced libraries like [Jackson](/jackson) and [JUnit](/testing-modules) we already have separate modules. Please make sure to have a look at the existing modules in such cases.
|
||||||
|
|
||||||
### Relevant Articles:
|
### Relevant Articles:
|
||||||
- [Guide to the Cactoos Library](https://www.baeldung.com/java-cactoos)
|
|
||||||
- [Introduction to cache2k](https://www.baeldung.com/java-cache2k)
|
|
||||||
- [Introduction to the jcabi-aspects AOP Annotations Library](https://www.baeldung.com/java-jcabi-aspects)
|
- [Introduction to the jcabi-aspects AOP Annotations Library](https://www.baeldung.com/java-jcabi-aspects)
|
||||||
- [Introduction to Takes](https://www.baeldung.com/java-takes)
|
|
||||||
- [Using NullAway to Avoid NullPointerExceptions](https://www.baeldung.com/java-nullaway)
|
- [Using NullAway to Avoid NullPointerExceptions](https://www.baeldung.com/java-nullaway)
|
||||||
- [Introduction to Alibaba Arthas](https://www.baeldung.com/java-alibaba-arthas-intro)
|
- [Introduction to Alibaba Arthas](https://www.baeldung.com/java-alibaba-arthas-intro)
|
||||||
- [Intro to Structurizr](https://www.baeldung.com/structurizr)
|
- [Intro to Structurizr](https://www.baeldung.com/structurizr)
|
||||||
|
@ -18,17 +18,6 @@
|
|||||||
<artifactId>lombok</artifactId>
|
<artifactId>lombok</artifactId>
|
||||||
<version>${lombok.version}</version>
|
<version>${lombok.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>org.cactoos</groupId>
|
|
||||||
<artifactId>cactoos</artifactId>
|
|
||||||
<version>${cactoos.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.cache2k</groupId>
|
|
||||||
<artifactId>cache2k-base-bom</artifactId>
|
|
||||||
<version>${cache2k.version}</version>
|
|
||||||
<type>pom</type>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.jcabi</groupId>
|
<groupId>com.jcabi</groupId>
|
||||||
<artifactId>jcabi-aspects</artifactId>
|
<artifactId>jcabi-aspects</artifactId>
|
||||||
@ -40,21 +29,6 @@
|
|||||||
<version>${aspectjrt.version}</version>
|
<version>${aspectjrt.version}</version>
|
||||||
<scope>runtime</scope>
|
<scope>runtime</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>org.takes</groupId>
|
|
||||||
<artifactId>takes</artifactId>
|
|
||||||
<version>${takes.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.httpcomponents</groupId>
|
|
||||||
<artifactId>httpcore</artifactId>
|
|
||||||
<version>${httpcore.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.httpcomponents</groupId>
|
|
||||||
<artifactId>httpclient</artifactId>
|
|
||||||
<version>${httpclient.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.velocity</groupId>
|
<groupId>org.apache.velocity</groupId>
|
||||||
<artifactId>velocity-engine-core</artifactId>
|
<artifactId>velocity-engine-core</artifactId>
|
||||||
@ -159,57 +133,13 @@
|
|||||||
</resources>
|
</resources>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<profiles>
|
|
||||||
<profile>
|
|
||||||
<id>reload</id>
|
|
||||||
<build>
|
|
||||||
<resources>
|
|
||||||
<resource>
|
|
||||||
<directory>src/main/resources</directory>
|
|
||||||
<filtering>true</filtering>
|
|
||||||
</resource>
|
|
||||||
<resource>
|
|
||||||
<directory>src/main/webapp</directory>
|
|
||||||
<filtering>true</filtering>
|
|
||||||
</resource>
|
|
||||||
</resources>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>exec-maven-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>start-server</id>
|
|
||||||
<phase>pre-integration-test</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>java</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
<configuration>
|
|
||||||
<mainClass>com.baeldung.takes.TakesApp</mainClass>
|
|
||||||
<cleanupDaemonThreads>false</cleanupDaemonThreads>
|
|
||||||
<arguments>
|
|
||||||
<argument>--port=${port}</argument>
|
|
||||||
</arguments>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</profile>
|
|
||||||
</profiles>
|
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<cactoos.version>0.43</cactoos.version>
|
|
||||||
<cache2k.version>1.2.3.Final</cache2k.version>
|
|
||||||
<jcabi-aspects.version>0.22.6</jcabi-aspects.version>
|
<jcabi-aspects.version>0.22.6</jcabi-aspects.version>
|
||||||
<aspectjrt.version>1.9.20.1</aspectjrt.version>
|
<aspectjrt.version>1.9.20.1</aspectjrt.version>
|
||||||
<jcabi-maven-plugin.version>0.14.1</jcabi-maven-plugin.version>
|
<jcabi-maven-plugin.version>0.14.1</jcabi-maven-plugin.version>
|
||||||
<aspectjtools.version>1.9.20.1</aspectjtools.version>
|
<aspectjtools.version>1.9.20.1</aspectjtools.version>
|
||||||
<aspectjweaver.version>1.9.20.1</aspectjweaver.version>
|
<aspectjweaver.version>1.9.20.1</aspectjweaver.version>
|
||||||
<takes.version>1.19</takes.version>
|
|
||||||
<httpcore.version>4.4.13</httpcore.version>
|
|
||||||
<httpclient.version>4.5.12</httpclient.version>
|
|
||||||
<velocity-engine-core.version>2.2</velocity-engine-core.version>
|
<velocity-engine-core.version>2.2</velocity-engine-core.version>
|
||||||
<nullaway.version>0.3.0</nullaway.version>
|
<nullaway.version>0.3.0</nullaway.version>
|
||||||
<plexus-compiler.version>2.8</plexus-compiler.version>
|
<plexus-compiler.version>2.8</plexus-compiler.version>
|
||||||
|
@ -8,11 +8,7 @@ The code examples related to different libraries are each in their own module.
|
|||||||
Remember, for advanced libraries like [Jackson](/jackson) and [JUnit](/testing-modules) we already have separate modules. Please make sure to have a look at the existing modules in such cases.
|
Remember, for advanced libraries like [Jackson](/jackson) and [JUnit](/testing-modules) we already have separate modules. Please make sure to have a look at the existing modules in such cases.
|
||||||
|
|
||||||
### Relevant articles
|
### Relevant articles
|
||||||
- [Quick Guide to RSS with Rome](https://www.baeldung.com/rome-rss)
|
|
||||||
- [Introduction to PCollections](https://www.baeldung.com/java-pcollections)
|
|
||||||
- [Introduction to Eclipse Collections](https://www.baeldung.com/eclipse-collections)
|
|
||||||
- [Introduction to NoException](https://www.baeldung.com/no-exception)
|
- [Introduction to NoException](https://www.baeldung.com/no-exception)
|
||||||
- [Delete a Directory Recursively in Java](https://www.baeldung.com/java-delete-directory)
|
|
||||||
- [Guide to JDeferred](https://www.baeldung.com/jdeferred)
|
- [Guide to JDeferred](https://www.baeldung.com/jdeferred)
|
||||||
- [Introduction to MBassador](https://www.baeldung.com/mbassador)
|
- [Introduction to MBassador](https://www.baeldung.com/mbassador)
|
||||||
- [Using Pairs in Java](https://www.baeldung.com/java-pairs)
|
- [Using Pairs in Java](https://www.baeldung.com/java-pairs)
|
||||||
|
@ -17,11 +17,6 @@
|
|||||||
<artifactId>jdeferred-core</artifactId>
|
<artifactId>jdeferred-core</artifactId>
|
||||||
<version>${jdeferred.version}</version>
|
<version>${jdeferred.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>org.eclipse.collections</groupId>
|
|
||||||
<artifactId>eclipse-collections</artifactId>
|
|
||||||
<version>${eclipse-collections.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.olap4j</groupId>
|
<groupId>org.olap4j</groupId>
|
||||||
<artifactId>olap4j</artifactId>
|
<artifactId>olap4j</artifactId>
|
||||||
@ -37,11 +32,6 @@
|
|||||||
<artifactId>noexception</artifactId>
|
<artifactId>noexception</artifactId>
|
||||||
<version>${noexception.version}</version>
|
<version>${noexception.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>rome</groupId>
|
|
||||||
<artifactId>rome</artifactId>
|
|
||||||
<version>${rome.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework</groupId>
|
<groupId>org.springframework</groupId>
|
||||||
<artifactId>spring-web</artifactId>
|
<artifactId>spring-web</artifactId>
|
||||||
@ -57,11 +47,6 @@
|
|||||||
<artifactId>servlet-api</artifactId>
|
<artifactId>servlet-api</artifactId>
|
||||||
<version>${javax.servlet.version}</version>
|
<version>${javax.servlet.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>org.pcollections</groupId>
|
|
||||||
<artifactId>pcollections</artifactId>
|
|
||||||
<version>${pcollections.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.awaitility</groupId>
|
<groupId>org.awaitility</groupId>
|
||||||
<artifactId>awaitility</artifactId>
|
<artifactId>awaitility</artifactId>
|
||||||
@ -113,11 +98,6 @@
|
|||||||
<artifactId>commons-lang3</artifactId>
|
<artifactId>commons-lang3</artifactId>
|
||||||
<version>${commons-lang3.version}</version>
|
<version>${commons-lang3.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>commons-io</groupId>
|
|
||||||
<artifactId>commons-io</artifactId>
|
|
||||||
<version>${commons-io.version}</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
@ -126,11 +106,9 @@
|
|||||||
<jdeferred.version>1.2.6</jdeferred.version>
|
<jdeferred.version>1.2.6</jdeferred.version>
|
||||||
<noexception.version>1.1.0</noexception.version>
|
<noexception.version>1.1.0</noexception.version>
|
||||||
<mbassador.version>1.3.1</mbassador.version>
|
<mbassador.version>1.3.1</mbassador.version>
|
||||||
<rome.version>1.0</rome.version>
|
|
||||||
<spring.version>4.3.8.RELEASE</spring.version>
|
<spring.version>4.3.8.RELEASE</spring.version>
|
||||||
<javax.servlet.version>2.5</javax.servlet.version>
|
<javax.servlet.version>2.5</javax.servlet.version>
|
||||||
<javax.jdo.version>3.2.0-m7</javax.jdo.version>
|
<javax.jdo.version>3.2.0-m7</javax.jdo.version>
|
||||||
<pcollections.version>2.1.2</pcollections.version>
|
|
||||||
<awaitility.version>3.0.0</awaitility.version>
|
<awaitility.version>3.0.0</awaitility.version>
|
||||||
<streamex.version>0.6.5</streamex.version>
|
<streamex.version>0.6.5</streamex.version>
|
||||||
<javax.el.version>3.0.0</javax.el.version>
|
<javax.el.version>3.0.0</javax.el.version>
|
||||||
@ -138,7 +116,6 @@
|
|||||||
<olap4j.version>1.2.0</olap4j.version>
|
<olap4j.version>1.2.0</olap4j.version>
|
||||||
<javafx.version>19</javafx.version>
|
<javafx.version>19</javafx.version>
|
||||||
<spoon-core.version>10.3.0</spoon-core.version>
|
<spoon-core.version>10.3.0</spoon-core.version>
|
||||||
<eclipse-collections.version>8.2.0</eclipse-collections.version>
|
|
||||||
<vavr.version>0.9.0</vavr.version>
|
<vavr.version>0.9.0</vavr.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
@ -8,12 +8,8 @@ The code examples related to different libraries are each in their own module.
|
|||||||
Remember, for advanced libraries like [Jackson](/jackson) and [JUnit](/testing-modules) we already have separate modules. Please make sure to have a look at the existing modules in such cases.
|
Remember, for advanced libraries like [Jackson](/jackson) and [JUnit](/testing-modules) we already have separate modules. Please make sure to have a look at the existing modules in such cases.
|
||||||
|
|
||||||
### Relevant articles
|
### Relevant articles
|
||||||
- [Introduction to Caffeine](https://www.baeldung.com/java-caching-caffeine)
|
|
||||||
- [A Docker Guide for Java](https://www.baeldung.com/docker-java-api)
|
- [A Docker Guide for Java](https://www.baeldung.com/docker-java-api)
|
||||||
- [Introduction to Akka Actors in Java](https://www.baeldung.com/akka-actors-java)
|
|
||||||
- [Introduction to jOOL](https://www.baeldung.com/jool)
|
- [Introduction to jOOL](https://www.baeldung.com/jool)
|
||||||
- [Consumer Driven Contracts with Pact](https://www.baeldung.com/pact-junit-consumer-driven-contracts)
|
|
||||||
- [Introduction to Atlassian Fugue](https://www.baeldung.com/java-fugue)
|
- [Introduction to Atlassian Fugue](https://www.baeldung.com/java-fugue)
|
||||||
- [Publish and Receive Messages with Nats Java Client](https://www.baeldung.com/nats-java-client)
|
- [Publish and Receive Messages with Nats Java Client](https://www.baeldung.com/nats-java-client)
|
||||||
- [Java Concurrency Utility with JCTools](https://www.baeldung.com/java-concurrency-jc-tools)
|
|
||||||
- More articles [[<-- prev]](/libraries-4) [[next -->]](/libraries-6)
|
- More articles [[<-- prev]](/libraries-4) [[next -->]](/libraries-6)
|
||||||
|
@ -6,49 +6,17 @@
|
|||||||
<artifactId>libraries-5</artifactId>
|
<artifactId>libraries-5</artifactId>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
|
<artifactId>parent-modules</artifactId>
|
||||||
<groupId>com.baeldung</groupId>
|
<groupId>com.baeldung</groupId>
|
||||||
<artifactId>parent-boot-2</artifactId>
|
<version>1.0.0-SNAPSHOT</version>
|
||||||
<version>0.0.1-SNAPSHOT</version>
|
|
||||||
<relativePath>../parent-boot-2</relativePath>
|
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework</groupId>
|
|
||||||
<artifactId>spring-web</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jooq</groupId>
|
<groupId>org.jooq</groupId>
|
||||||
<artifactId>jool</artifactId>
|
<artifactId>jool</artifactId>
|
||||||
<version>${jool.version}</version>
|
<version>${jool.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>au.com.dius</groupId>
|
|
||||||
<artifactId>pact-jvm-provider-junit5_2.12</artifactId>
|
|
||||||
<version>${pact.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>au.com.dius</groupId>
|
|
||||||
<artifactId>pact-jvm-consumer-junit5_2.12</artifactId>
|
|
||||||
<version>${pact.version}</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-starter-web</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<!-- https://mvnrepository.com/artifact/com.typesafe.akka/akka-actor -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.typesafe.akka</groupId>
|
|
||||||
<artifactId>akka-actor_${scala.version}</artifactId>
|
|
||||||
<version>${typesafe-akka.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.typesafe.akka</groupId>
|
|
||||||
<artifactId>akka-testkit_${scala.version}</artifactId>
|
|
||||||
<version>${typesafe-akka.version}</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<!--Java Docker API Client -->
|
<!--Java Docker API Client -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.docker-java</groupId>
|
<groupId>com.github.docker-java</groupId>
|
||||||
@ -69,18 +37,6 @@
|
|||||||
</exclusion>
|
</exclusion>
|
||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!--Java Docker API Client -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.github.ben-manes.caffeine</groupId>
|
|
||||||
<artifactId>caffeine</artifactId>
|
|
||||||
<version>${caffeine.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.google.code.findbugs</groupId>
|
|
||||||
<artifactId>jsr305</artifactId>
|
|
||||||
<version>${findbugs.version}</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<!-- Atlassian Fugue -->
|
<!-- Atlassian Fugue -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.atlassian.fugue</groupId>
|
<groupId>io.atlassian.fugue</groupId>
|
||||||
@ -92,44 +48,14 @@
|
|||||||
<artifactId>jnats</artifactId>
|
<artifactId>jnats</artifactId>
|
||||||
<version>${jnats.version}</version>
|
<version>${jnats.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>org.jctools</groupId>
|
|
||||||
<artifactId>jctools-core</artifactId>
|
|
||||||
<version>${jctools.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.openjdk.jmh</groupId>
|
|
||||||
<artifactId>jmh-core</artifactId>
|
|
||||||
<version>${jmh-core.version}</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<systemPropertyVariables>
|
|
||||||
<pact.rootDir>target/mypacts</pact.rootDir>
|
|
||||||
</systemPropertyVariables>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<pact.version>3.6.3</pact.version>
|
|
||||||
<jool.version>0.9.12</jool.version>
|
<jool.version>0.9.12</jool.version>
|
||||||
<spring.version>4.3.8.RELEASE</spring.version>
|
|
||||||
<scala.version>2.12</scala.version>
|
<scala.version>2.12</scala.version>
|
||||||
<typesafe-akka.version>2.5.11</typesafe-akka.version>
|
|
||||||
<docker.version>3.0.14</docker.version>
|
<docker.version>3.0.14</docker.version>
|
||||||
<caffeine.version>3.1.8</caffeine.version>
|
|
||||||
<findbugs.version>3.0.2</findbugs.version>
|
|
||||||
<fugue.version>4.5.1</fugue.version>
|
<fugue.version>4.5.1</fugue.version>
|
||||||
<jnats.version>1.0</jnats.version>
|
<jnats.version>1.0</jnats.version>
|
||||||
<jctools.version>2.1.2</jctools.version>
|
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
</project>
|
</project>
|
@ -10,11 +10,9 @@ Remember, for advanced libraries like [Jackson](/jackson) and [JUnit](/testing-m
|
|||||||
### Relevant articles
|
### Relevant articles
|
||||||
- [Introduction to JavaPoet](https://www.baeldung.com/java-poet)
|
- [Introduction to JavaPoet](https://www.baeldung.com/java-poet)
|
||||||
- [Guide to Resilience4j](https://www.baeldung.com/resilience4j)
|
- [Guide to Resilience4j](https://www.baeldung.com/resilience4j)
|
||||||
- [Implementing a FTP-Client in Java](https://www.baeldung.com/java-ftp-client)
|
|
||||||
- [Introduction to Functional Java](https://www.baeldung.com/java-functional-library)
|
- [Introduction to Functional Java](https://www.baeldung.com/java-functional-library)
|
||||||
- [Guide to Simple Binary Encoding](https://www.baeldung.com/java-sbe)
|
- [Guide to Simple Binary Encoding](https://www.baeldung.com/java-sbe)
|
||||||
- [Java-R Integration](https://www.baeldung.com/java-r-integration)
|
- [Java-R Integration](https://www.baeldung.com/java-r-integration)
|
||||||
- [Using libphonenumber to Validate Phone Numbers](https://www.baeldung.com/java-libphonenumber)
|
- [Using libphonenumber to Validate Phone Numbers](https://www.baeldung.com/java-libphonenumber)
|
||||||
- [Apache Commons Collections vs Google Guava](https://www.baeldung.com/apache-commons-collections-vs-guava)
|
- [Apache Commons Collections vs Google Guava](https://www.baeldung.com/apache-commons-collections-vs-guava)
|
||||||
- [Guide to Using ModelMapper](https://www.baeldung.com/java-modelmapper)
|
|
||||||
- More articles [[<-- prev]](/libraries-5) [[next -->]](/libraries-7)
|
- More articles [[<-- prev]](/libraries-5) [[next -->]](/libraries-7)
|
||||||
|
@ -42,12 +42,6 @@
|
|||||||
<artifactId>javapoet</artifactId>
|
<artifactId>javapoet</artifactId>
|
||||||
<version>${javapoet.version}</version>
|
<version>${javapoet.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>org.mockftpserver</groupId>
|
|
||||||
<artifactId>MockFtpServer</artifactId>
|
|
||||||
<version>${mockftpserver.version}</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.commons</groupId>
|
<groupId>org.apache.commons</groupId>
|
||||||
<artifactId>commons-lang3</artifactId>
|
<artifactId>commons-lang3</artifactId>
|
||||||
@ -63,11 +57,6 @@
|
|||||||
<artifactId>guava</artifactId>
|
<artifactId>guava</artifactId>
|
||||||
<version>${guava.version}</version>
|
<version>${guava.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>commons-net</groupId>
|
|
||||||
<artifactId>commons-net</artifactId>
|
|
||||||
<version>${commons-net.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>commons-io</groupId>
|
<groupId>commons-io</groupId>
|
||||||
<artifactId>commons-io</artifactId>
|
<artifactId>commons-io</artifactId>
|
||||||
@ -95,11 +84,6 @@
|
|||||||
<artifactId>libphonenumber</artifactId>
|
<artifactId>libphonenumber</artifactId>
|
||||||
<version>${libphonenumber.version}</version>
|
<version>${libphonenumber.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>org.modelmapper</groupId>
|
|
||||||
<artifactId>modelmapper</artifactId>
|
|
||||||
<version>${org.modelmapper.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.agrona</groupId>
|
<groupId>org.agrona</groupId>
|
||||||
<artifactId>agrona</artifactId>
|
<artifactId>agrona</artifactId>
|
||||||
@ -190,15 +174,12 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<javapoet.version>1.10.0</javapoet.version>
|
<javapoet.version>1.10.0</javapoet.version>
|
||||||
<mockftpserver.version>2.7.1</mockftpserver.version>
|
|
||||||
<functionaljava.version>4.8.1</functionaljava.version>
|
<functionaljava.version>4.8.1</functionaljava.version>
|
||||||
<resilience4j.version>2.1.0</resilience4j.version>
|
<resilience4j.version>2.1.0</resilience4j.version>
|
||||||
<commons-net.version>3.6</commons-net.version>
|
|
||||||
<renjin.version>3.5-beta72</renjin.version>
|
<renjin.version>3.5-beta72</renjin.version>
|
||||||
<rcaller.version>3.0</rcaller.version>
|
<rcaller.version>3.0</rcaller.version>
|
||||||
<rserve.version>1.8.1</rserve.version>
|
<rserve.version>1.8.1</rserve.version>
|
||||||
<libphonenumber.version>8.12.9</libphonenumber.version>
|
<libphonenumber.version>8.12.9</libphonenumber.version>
|
||||||
<org.modelmapper.version>3.2.0</org.modelmapper.version>
|
|
||||||
<agrona.version>1.17.1</agrona.version>
|
<agrona.version>1.17.1</agrona.version>
|
||||||
<exec-maven-plugin.version>1.6.0</exec-maven-plugin.version>
|
<exec-maven-plugin.version>1.6.0</exec-maven-plugin.version>
|
||||||
<sbe-tool.version>1.27.0</sbe-tool.version>
|
<sbe-tool.version>1.27.0</sbe-tool.version>
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
## Relevant Articles
|
## Relevant Articles
|
||||||
- [Overview of NLP Libraries in Java](https://www.baeldung.com/java-nlp-libraries)
|
- [Overview of NLP Libraries in Java](https://www.baeldung.com/java-nlp-libraries)
|
||||||
|
- [Introduction to Neuroph](https://www.baeldung.com/neuroph)
|
||||||
|
@ -23,11 +23,17 @@
|
|||||||
<artifactId>opennlp-tools</artifactId>
|
<artifactId>opennlp-tools</artifactId>
|
||||||
<version>${opennlp-tools.version}</version>
|
<version>${opennlp-tools.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.beykery</groupId>
|
||||||
|
<artifactId>neuroph</artifactId>
|
||||||
|
<version>${neuroph.version}</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<stanford-corenlp.version>4.5.3</stanford-corenlp.version>
|
<stanford-corenlp.version>4.5.3</stanford-corenlp.version>
|
||||||
<opennlp-tools.version>2.1.1</opennlp-tools.version>
|
<opennlp-tools.version>2.1.1</opennlp-tools.version>
|
||||||
|
<neuroph.version>2.92</neuroph.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
</project>
|
</project>
|
@ -1,4 +1,4 @@
|
|||||||
package com.baeldung.neuroph;
|
package neuroph;
|
||||||
|
|
||||||
import org.neuroph.core.Layer;
|
import org.neuroph.core.Layer;
|
||||||
import org.neuroph.core.NeuralNetwork;
|
import org.neuroph.core.NeuralNetwork;
|
@ -1,11 +1,13 @@
|
|||||||
package com.baeldung.neuroph;
|
package com.baeldung.neuroph;
|
||||||
|
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.neuroph.core.NeuralNetwork;
|
import org.neuroph.core.NeuralNetwork;
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import neuroph.NeurophXOR;
|
||||||
|
|
||||||
public class XORIntegrationTest {
|
public class XORIntegrationTest {
|
||||||
private NeuralNetwork ann = null;
|
private NeuralNetwork ann = null;
|
@ -5,4 +5,5 @@ This module contains articles about Apache Commons libraries.
|
|||||||
### Relevant articles
|
### Relevant articles
|
||||||
- [Extracting a Tar File in Java](https://www.baeldung.com/java-extract-tar-file)
|
- [Extracting a Tar File in Java](https://www.baeldung.com/java-extract-tar-file)
|
||||||
- [Convert a String with Unicode Encoding to a String of Letters](https://www.baeldung.com/java-convert-string-unicode-encoding)
|
- [Convert a String with Unicode Encoding to a String of Letters](https://www.baeldung.com/java-convert-string-unicode-encoding)
|
||||||
|
-
|
||||||
- More articles: [[<--prev]](../libraries-apache-commons)
|
- More articles: [[<--prev]](../libraries-apache-commons)
|
||||||
|
@ -33,6 +33,17 @@
|
|||||||
<artifactId>commons-text</artifactId>
|
<artifactId>commons-text</artifactId>
|
||||||
<version>${apache-commons-text.version}</version>
|
<version>${apache-commons-text.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>commons-net</groupId>
|
||||||
|
<artifactId>commons-net</artifactId>
|
||||||
|
<version>${commons-net.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.mockftpserver</groupId>
|
||||||
|
<artifactId>MockFtpServer</artifactId>
|
||||||
|
<version>${mockftpserver.version}</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
@ -40,6 +51,8 @@
|
|||||||
<ant.version>1.10.13</ant.version>
|
<ant.version>1.10.13</ant.version>
|
||||||
<commons-vfs2.version>2.9.0</commons-vfs2.version>
|
<commons-vfs2.version>2.9.0</commons-vfs2.version>
|
||||||
<apache-commons-text.version>1.10.0</apache-commons-text.version>
|
<apache-commons-text.version>1.10.0</apache-commons-text.version>
|
||||||
|
<commons-net.version>3.6</commons-net.version>
|
||||||
|
<mockftpserver.version>2.7.1</mockftpserver.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
</project>
|
</project>
|
@ -1,15 +1,19 @@
|
|||||||
package com.baeldung.ftp;
|
package com.baeldung.commons.ftp;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.FileInputStream;
|
||||||
|
import java.io.FileOutputStream;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.PrintWriter;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Collection;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import org.apache.commons.net.PrintCommandListener;
|
import org.apache.commons.net.PrintCommandListener;
|
||||||
import org.apache.commons.net.ftp.FTPClient;
|
import org.apache.commons.net.ftp.FTPClient;
|
||||||
import org.apache.commons.net.ftp.FTPFile;
|
import org.apache.commons.net.ftp.FTPFile;
|
||||||
import org.apache.commons.net.ftp.FTPReply;
|
import org.apache.commons.net.ftp.FTPReply;
|
||||||
|
|
||||||
import java.io.*;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.Collection;
|
|
||||||
import java.util.stream.Collectors;
|
|
||||||
|
|
||||||
class FtpClient {
|
class FtpClient {
|
||||||
|
|
||||||
private final String server;
|
private final String server;
|
@ -1,4 +1,11 @@
|
|||||||
package com.baeldung.ftp;
|
package com.baeldung.commons.ftp;
|
||||||
|
|
||||||
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.net.URISyntaxException;
|
||||||
|
import java.util.Collection;
|
||||||
|
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
@ -10,13 +17,6 @@ import org.mockftpserver.fake.filesystem.FileEntry;
|
|||||||
import org.mockftpserver.fake.filesystem.FileSystem;
|
import org.mockftpserver.fake.filesystem.FileSystem;
|
||||||
import org.mockftpserver.fake.filesystem.UnixFakeFileSystem;
|
import org.mockftpserver.fake.filesystem.UnixFakeFileSystem;
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.net.URISyntaxException;
|
|
||||||
import java.util.Collection;
|
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
|
||||||
|
|
||||||
public class FtpClientIntegrationTest {
|
public class FtpClientIntegrationTest {
|
||||||
|
|
||||||
private FakeFtpServer fakeFtpServer;
|
private FakeFtpServer fakeFtpServer;
|
@ -1,4 +1,13 @@
|
|||||||
package com.baeldung.ftp;
|
package com.baeldung.commons.ftp;
|
||||||
|
|
||||||
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.net.URL;
|
||||||
|
import java.net.URLConnection;
|
||||||
|
import java.nio.file.Files;
|
||||||
|
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
@ -10,18 +19,6 @@ import org.mockftpserver.fake.filesystem.FileEntry;
|
|||||||
import org.mockftpserver.fake.filesystem.FileSystem;
|
import org.mockftpserver.fake.filesystem.FileSystem;
|
||||||
import org.mockftpserver.fake.filesystem.UnixFakeFileSystem;
|
import org.mockftpserver.fake.filesystem.UnixFakeFileSystem;
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.io.FileOutputStream;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.io.InputStream;
|
|
||||||
import java.net.URISyntaxException;
|
|
||||||
import java.net.URL;
|
|
||||||
import java.net.URLConnection;
|
|
||||||
import java.nio.file.Files;
|
|
||||||
import java.util.Collection;
|
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
|
||||||
|
|
||||||
public class JdkFtpClientIntegrationTest {
|
public class JdkFtpClientIntegrationTest {
|
||||||
|
|
||||||
private FakeFtpServer fakeFtpServer;
|
private FakeFtpServer fakeFtpServer;
|
@ -1,3 +1,4 @@
|
|||||||
### Relevant Articles:
|
### Relevant Articles:
|
||||||
|
|
||||||
- [Intro to Coroutines with Quasar](https://www.baeldung.com/java-quasar-coroutines)
|
- [Intro to Coroutines with Quasar](https://www.baeldung.com/java-quasar-coroutines)
|
||||||
|
- [Java Concurrency Utility with JCTools](https://www.baeldung.com/java-concurrency-jc-tools)
|
||||||
|
@ -28,6 +28,16 @@
|
|||||||
<artifactId>quasar-reactive-streams</artifactId>
|
<artifactId>quasar-reactive-streams</artifactId>
|
||||||
<version>${quasar.version}</version>
|
<version>${quasar.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jctools</groupId>
|
||||||
|
<artifactId>jctools-core</artifactId>
|
||||||
|
<version>${jctools.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.openjdk.jmh</groupId>
|
||||||
|
<artifactId>jmh-core</artifactId>
|
||||||
|
<version>${jmh-core.version}</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
@ -77,6 +87,7 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<quasar.version>0.8.0</quasar.version>
|
<quasar.version>0.8.0</quasar.version>
|
||||||
|
<jctools.version>2.1.2</jctools.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
</project>
|
</project>
|
@ -1,14 +1,27 @@
|
|||||||
package com.baeldung.jctools;
|
package com.baeldung.jctools;
|
||||||
|
|
||||||
import org.jctools.queues.MpmcArrayQueue;
|
|
||||||
import org.jctools.queues.atomic.MpmcAtomicArrayQueue;
|
|
||||||
import org.openjdk.jmh.annotations.*;
|
|
||||||
import org.openjdk.jmh.infra.Control;
|
|
||||||
|
|
||||||
import java.util.Queue;
|
import java.util.Queue;
|
||||||
import java.util.concurrent.ArrayBlockingQueue;
|
import java.util.concurrent.ArrayBlockingQueue;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
|
import org.jctools.queues.MpmcArrayQueue;
|
||||||
|
import org.jctools.queues.atomic.MpmcAtomicArrayQueue;
|
||||||
|
import org.openjdk.jmh.annotations.Benchmark;
|
||||||
|
import org.openjdk.jmh.annotations.BenchmarkMode;
|
||||||
|
import org.openjdk.jmh.annotations.Fork;
|
||||||
|
import org.openjdk.jmh.annotations.Group;
|
||||||
|
import org.openjdk.jmh.annotations.GroupThreads;
|
||||||
|
import org.openjdk.jmh.annotations.Level;
|
||||||
|
import org.openjdk.jmh.annotations.Measurement;
|
||||||
|
import org.openjdk.jmh.annotations.Mode;
|
||||||
|
import org.openjdk.jmh.annotations.OutputTimeUnit;
|
||||||
|
import org.openjdk.jmh.annotations.Param;
|
||||||
|
import org.openjdk.jmh.annotations.Scope;
|
||||||
|
import org.openjdk.jmh.annotations.Setup;
|
||||||
|
import org.openjdk.jmh.annotations.State;
|
||||||
|
import org.openjdk.jmh.annotations.Warmup;
|
||||||
|
import org.openjdk.jmh.infra.Control;
|
||||||
|
|
||||||
@BenchmarkMode(Mode.SampleTime)
|
@BenchmarkMode(Mode.SampleTime)
|
||||||
@OutputTimeUnit(TimeUnit.NANOSECONDS)
|
@OutputTimeUnit(TimeUnit.NANOSECONDS)
|
||||||
@Fork(1)
|
@Fork(1)
|
@ -1,20 +1,19 @@
|
|||||||
package com.baeldung.jctools;
|
package com.baeldung.jctools;
|
||||||
|
|
||||||
import org.assertj.core.api.Assertions;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
import org.jctools.queues.SpscArrayQueue;
|
import static org.assertj.core.api.Assertions.fail;
|
||||||
import org.jctools.queues.SpscChunkedArrayQueue;
|
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.CountDownLatch;
|
import java.util.concurrent.CountDownLatch;
|
||||||
import java.util.concurrent.atomic.AtomicReference;
|
import java.util.concurrent.atomic.AtomicReference;
|
||||||
import java.util.function.IntConsumer;
|
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
import java.util.stream.IntStream;
|
import java.util.stream.IntStream;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import org.assertj.core.api.Assertions;
|
||||||
import static org.assertj.core.api.Assertions.fail;
|
import org.jctools.queues.SpscArrayQueue;
|
||||||
|
import org.jctools.queues.SpscChunkedArrayQueue;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
public class JCToolsUnitTest {
|
public class JCToolsUnitTest {
|
||||||
|
|
15
libraries-data-3/README.md
Normal file
15
libraries-data-3/README.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
## Data Libraries
|
||||||
|
|
||||||
|
This module contains articles about libraries for data processing in Java.
|
||||||
|
|
||||||
|
### Relevant articles
|
||||||
|
- [Introduction to Javatuples](https://www.baeldung.com/java-tuples)
|
||||||
|
- [Software Transactional Memory in Java Using Multiverse](https://www.baeldung.com/java-multiverse-stm)
|
||||||
|
- [Key Value Store with Chronicle Map](https://www.baeldung.com/java-chronicle-map)
|
||||||
|
- [Guide to the Cactoos Library](https://www.baeldung.com/java-cactoos)
|
||||||
|
- [Introduction to cache2k](https://www.baeldung.com/java-cache2k)
|
||||||
|
- [Introduction to PCollections](https://www.baeldung.com/java-pcollections)
|
||||||
|
- [Introduction to Eclipse Collections](https://www.baeldung.com/eclipse-collections)
|
||||||
|
- [Introduction to Caffeine](https://www.baeldung.com/java-caching-caffeine)
|
||||||
|
- [Guide to Using ModelMapper](https://www.baeldung.com/java-modelmapper)
|
||||||
|
- More articles: [[<-- prev]](/../libraries-data-2)
|
101
libraries-data-3/pom.xml
Normal file
101
libraries-data-3/pom.xml
Normal file
@ -0,0 +1,101 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<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">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<artifactId>libraries-data-3</artifactId>
|
||||||
|
<name>libraries-data-3</name>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<groupId>com.baeldung</groupId>
|
||||||
|
<artifactId>parent-modules</artifactId>
|
||||||
|
<version>1.0.0-SNAPSHOT</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.javatuples</groupId>
|
||||||
|
<artifactId>javatuples</artifactId>
|
||||||
|
<version>${javatuples.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.multiverse</groupId>
|
||||||
|
<artifactId>multiverse-core</artifactId>
|
||||||
|
<version>${multiverse.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>net.openhft</groupId>
|
||||||
|
<artifactId>chronicle-map</artifactId>
|
||||||
|
<version>${chronicle.map.version}</version>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>com.sun.java</groupId>
|
||||||
|
<artifactId>tools</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.cactoos</groupId>
|
||||||
|
<artifactId>cactoos</artifactId>
|
||||||
|
<version>${cactoos.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.cache2k</groupId>
|
||||||
|
<artifactId>cache2k-base-bom</artifactId>
|
||||||
|
<version>${cache2k.version}</version>
|
||||||
|
<type>pom</type>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.pcollections</groupId>
|
||||||
|
<artifactId>pcollections</artifactId>
|
||||||
|
<version>${pcollections.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.eclipse.collections</groupId>
|
||||||
|
<artifactId>eclipse-collections</artifactId>
|
||||||
|
<version>${eclipse-collections.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.ben-manes.caffeine</groupId>
|
||||||
|
<artifactId>caffeine</artifactId>
|
||||||
|
<version>${caffeine.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.google.code.findbugs</groupId>
|
||||||
|
<artifactId>jsr305</artifactId>
|
||||||
|
<version>${findbugs.version}</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.modelmapper</groupId>
|
||||||
|
<artifactId>modelmapper</artifactId>
|
||||||
|
<version>${org.modelmapper.version}</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<argLine>--add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED</argLine>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<javatuples.version>1.2</javatuples.version>
|
||||||
|
<multiverse.version>0.7.0</multiverse.version>
|
||||||
|
<chronicle.map.version>3.24ea1</chronicle.map.version>
|
||||||
|
<cactoos.version>0.43</cactoos.version>
|
||||||
|
<cache2k.version>1.2.3.Final</cache2k.version>
|
||||||
|
<pcollections.version>2.1.2</pcollections.version>
|
||||||
|
<eclipse-collections.version>8.2.0</eclipse-collections.version>
|
||||||
|
<caffeine.version>3.1.8</caffeine.version>
|
||||||
|
<findbugs.version>3.0.2</findbugs.version>
|
||||||
|
<org.modelmapper.version>3.2.0</org.modelmapper.version>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
</project>
|
@ -1,8 +1,9 @@
|
|||||||
package com.baeldung.modelmapper.dto;
|
package com.baeldung.modelmapper.dto;
|
||||||
|
|
||||||
import com.baeldung.modelmapper.domain.GameMode;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baeldung.modelmapper.domain.GameMode;
|
||||||
|
|
||||||
public class GameDTO {
|
public class GameDTO {
|
||||||
|
|
||||||
private Long id;
|
private Long id;
|
@ -1,9 +1,10 @@
|
|||||||
package com.baeldung.modelmapper.repository;
|
package com.baeldung.modelmapper.repository;
|
||||||
|
|
||||||
import com.baeldung.modelmapper.domain.Game;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baeldung.modelmapper.domain.Game;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sample in-memory Game Repository
|
* Sample in-memory Game Repository
|
||||||
*/
|
*/
|
@ -3,8 +3,8 @@ package com.baeldung.cactoos;
|
|||||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.List;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
@ -1,6 +1,8 @@
|
|||||||
package com.baeldung.caffeine;
|
package com.baeldung.caffeine;
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.assertEquals;
|
||||||
|
import static org.junit.Assert.assertNotNull;
|
||||||
|
import static org.junit.Assert.assertNull;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -11,7 +13,11 @@ import javax.annotation.Nonnull;
|
|||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import com.github.benmanes.caffeine.cache.*;
|
import com.github.benmanes.caffeine.cache.AsyncLoadingCache;
|
||||||
|
import com.github.benmanes.caffeine.cache.Cache;
|
||||||
|
import com.github.benmanes.caffeine.cache.Caffeine;
|
||||||
|
import com.github.benmanes.caffeine.cache.Expiry;
|
||||||
|
import com.github.benmanes.caffeine.cache.LoadingCache;
|
||||||
|
|
||||||
public class CaffeineUnitTest {
|
public class CaffeineUnitTest {
|
||||||
|
|
@ -1,132 +1,132 @@
|
|||||||
package com.baeldung.chroniclemap;
|
package com.baeldung.chroniclemap;
|
||||||
|
|
||||||
import static org.hamcrest.CoreMatchers.equalTo;
|
import static org.hamcrest.CoreMatchers.equalTo;
|
||||||
import static org.hamcrest.CoreMatchers.is;
|
import static org.hamcrest.CoreMatchers.is;
|
||||||
import static org.junit.Assert.assertThat;
|
import static org.junit.Assert.assertThat;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
import java.util.stream.IntStream;
|
import java.util.stream.IntStream;
|
||||||
|
|
||||||
import org.junit.AfterClass;
|
import org.junit.AfterClass;
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import net.openhft.chronicle.core.values.LongValue;
|
import net.openhft.chronicle.core.values.LongValue;
|
||||||
import net.openhft.chronicle.map.ChronicleMap;
|
import net.openhft.chronicle.map.ChronicleMap;
|
||||||
import net.openhft.chronicle.map.ExternalMapQueryContext;
|
import net.openhft.chronicle.map.ExternalMapQueryContext;
|
||||||
import net.openhft.chronicle.map.MapEntry;
|
import net.openhft.chronicle.map.MapEntry;
|
||||||
import net.openhft.chronicle.values.Values;
|
import net.openhft.chronicle.values.Values;
|
||||||
|
|
||||||
public class ChronicleMapUnitTest {
|
public class ChronicleMapUnitTest {
|
||||||
|
|
||||||
static ChronicleMap<LongValue, CharSequence> persistedCountryMap = null;
|
static ChronicleMap<LongValue, CharSequence> persistedCountryMap = null;
|
||||||
|
|
||||||
static ChronicleMap<LongValue, CharSequence> inMemoryCountryMap = null;
|
static ChronicleMap<LongValue, CharSequence> inMemoryCountryMap = null;
|
||||||
|
|
||||||
static ChronicleMap<Integer, Set<Integer>> multiMap = null;
|
static ChronicleMap<Integer, Set<Integer>> multiMap = null;
|
||||||
|
|
||||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||||
@BeforeClass
|
@BeforeClass
|
||||||
public static void init() {
|
public static void init() {
|
||||||
try {
|
try {
|
||||||
inMemoryCountryMap = ChronicleMap.of(LongValue.class, CharSequence.class)
|
inMemoryCountryMap = ChronicleMap.of(LongValue.class, CharSequence.class)
|
||||||
.name("country-map")
|
.name("country-map")
|
||||||
.entries(50)
|
.entries(50)
|
||||||
.averageValue("America")
|
.averageValue("America")
|
||||||
.create();
|
.create();
|
||||||
|
|
||||||
persistedCountryMap = ChronicleMap.of(LongValue.class, CharSequence.class)
|
persistedCountryMap = ChronicleMap.of(LongValue.class, CharSequence.class)
|
||||||
.name("country-map")
|
.name("country-map")
|
||||||
.entries(50)
|
.entries(50)
|
||||||
.averageValue("America")
|
.averageValue("America")
|
||||||
.createPersistedTo(new File(System.getProperty("user.home") + "/country-details.dat"));
|
.createPersistedTo(new File(System.getProperty("user.home") + "/country-details.dat"));
|
||||||
|
|
||||||
Set<Integer> averageValue = IntStream.of(1, 2)
|
Set<Integer> averageValue = IntStream.of(1, 2)
|
||||||
.boxed()
|
.boxed()
|
||||||
.collect(Collectors.toSet());
|
.collect(Collectors.toSet());
|
||||||
multiMap = ChronicleMap.of(Integer.class, (Class<Set<Integer>>) (Class) Set.class)
|
multiMap = ChronicleMap.of(Integer.class, (Class<Set<Integer>>) (Class) Set.class)
|
||||||
.name("multi-map")
|
.name("multi-map")
|
||||||
.entries(50)
|
.entries(50)
|
||||||
.averageValue(averageValue)
|
.averageValue(averageValue)
|
||||||
.create();
|
.create();
|
||||||
|
|
||||||
LongValue qatarKey = Values.newHeapInstance(LongValue.class);
|
LongValue qatarKey = Values.newHeapInstance(LongValue.class);
|
||||||
qatarKey.setValue(1);
|
qatarKey.setValue(1);
|
||||||
inMemoryCountryMap.put(qatarKey, "Qatar");
|
inMemoryCountryMap.put(qatarKey, "Qatar");
|
||||||
|
|
||||||
LongValue key = Values.newHeapInstance(LongValue.class);
|
LongValue key = Values.newHeapInstance(LongValue.class);
|
||||||
key.setValue(1);
|
key.setValue(1);
|
||||||
persistedCountryMap.put(key, "Romania");
|
persistedCountryMap.put(key, "Romania");
|
||||||
key.setValue(2);
|
key.setValue(2);
|
||||||
persistedCountryMap.put(key, "India");
|
persistedCountryMap.put(key, "India");
|
||||||
|
|
||||||
Set<Integer> set1 = new HashSet<>();
|
Set<Integer> set1 = new HashSet<>();
|
||||||
set1.add(1);
|
set1.add(1);
|
||||||
set1.add(2);
|
set1.add(2);
|
||||||
multiMap.put(1, set1);
|
multiMap.put(1, set1);
|
||||||
|
|
||||||
Set<Integer> set2 = new HashSet<>();
|
Set<Integer> set2 = new HashSet<>();
|
||||||
set2.add(3);
|
set2.add(3);
|
||||||
multiMap.put(2, set2);
|
multiMap.put(2, set2);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenGetQuery_whenCalled_shouldReturnResult() {
|
public void givenGetQuery_whenCalled_shouldReturnResult() {
|
||||||
LongValue key = Values.newHeapInstance(LongValue.class);
|
LongValue key = Values.newHeapInstance(LongValue.class);
|
||||||
key.setValue(1);
|
key.setValue(1);
|
||||||
CharSequence country = inMemoryCountryMap.get(key);
|
CharSequence country = inMemoryCountryMap.get(key);
|
||||||
assertThat(country.toString(), is(equalTo("Qatar")));
|
assertThat(country.toString(), is(equalTo("Qatar")));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenGetUsingQuery_whenCalled_shouldReturnResult() {
|
public void givenGetUsingQuery_whenCalled_shouldReturnResult() {
|
||||||
LongValue key = Values.newHeapInstance(LongValue.class);
|
LongValue key = Values.newHeapInstance(LongValue.class);
|
||||||
StringBuilder country = new StringBuilder();
|
StringBuilder country = new StringBuilder();
|
||||||
key.setValue(1);
|
key.setValue(1);
|
||||||
persistedCountryMap.getUsing(key, country);
|
persistedCountryMap.getUsing(key, country);
|
||||||
assertThat(country.toString(), is(equalTo("Romania")));
|
assertThat(country.toString(), is(equalTo("Romania")));
|
||||||
key.setValue(2);
|
key.setValue(2);
|
||||||
persistedCountryMap.getUsing(key, country);
|
persistedCountryMap.getUsing(key, country);
|
||||||
assertThat(country.toString(), is(equalTo("India")));
|
assertThat(country.toString(), is(equalTo("India")));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenMultipleKeyQuery_whenProcessed_shouldChangeTheValue() {
|
public void givenMultipleKeyQuery_whenProcessed_shouldChangeTheValue() {
|
||||||
try (ExternalMapQueryContext<Integer, Set<Integer>, ?> fistContext = multiMap.queryContext(1)) {
|
try (ExternalMapQueryContext<Integer, Set<Integer>, ?> fistContext = multiMap.queryContext(1)) {
|
||||||
try (ExternalMapQueryContext<Integer, Set<Integer>, ?> secondContext = multiMap.queryContext(2)) {
|
try (ExternalMapQueryContext<Integer, Set<Integer>, ?> secondContext = multiMap.queryContext(2)) {
|
||||||
fistContext.updateLock()
|
fistContext.updateLock()
|
||||||
.lock();
|
.lock();
|
||||||
secondContext.updateLock()
|
secondContext.updateLock()
|
||||||
.lock();
|
.lock();
|
||||||
MapEntry<Integer, Set<Integer>> firstEntry = fistContext.entry();
|
MapEntry<Integer, Set<Integer>> firstEntry = fistContext.entry();
|
||||||
Set<Integer> firstSet = firstEntry.value()
|
Set<Integer> firstSet = firstEntry.value()
|
||||||
.get();
|
.get();
|
||||||
firstSet.remove(2);
|
firstSet.remove(2);
|
||||||
MapEntry<Integer, Set<Integer>> secondEntry = secondContext.entry();
|
MapEntry<Integer, Set<Integer>> secondEntry = secondContext.entry();
|
||||||
Set<Integer> secondSet = secondEntry.value()
|
Set<Integer> secondSet = secondEntry.value()
|
||||||
.get();
|
.get();
|
||||||
secondSet.add(4);
|
secondSet.add(4);
|
||||||
firstEntry.doReplaceValue(fistContext.wrapValueAsData(firstSet));
|
firstEntry.doReplaceValue(fistContext.wrapValueAsData(firstSet));
|
||||||
secondEntry.doReplaceValue(secondContext.wrapValueAsData(secondSet));
|
secondEntry.doReplaceValue(secondContext.wrapValueAsData(secondSet));
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
assertThat(multiMap.get(1)
|
assertThat(multiMap.get(1)
|
||||||
.size(), is(equalTo(1)));
|
.size(), is(equalTo(1)));
|
||||||
assertThat(multiMap.get(2)
|
assertThat(multiMap.get(2)
|
||||||
.size(), is(equalTo(2)));
|
.size(), is(equalTo(2)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@AfterClass
|
@AfterClass
|
||||||
public static void finish() {
|
public static void finish() {
|
||||||
persistedCountryMap.close();
|
persistedCountryMap.close();
|
||||||
inMemoryCountryMap.close();
|
inMemoryCountryMap.close();
|
||||||
multiMap.close();
|
multiMap.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,9 +1,8 @@
|
|||||||
package com.baeldung.eclipsecollections;
|
package com.baeldung.eclipsecollections;
|
||||||
|
|
||||||
|
import org.assertj.core.api.Assertions;
|
||||||
import org.eclipse.collections.api.list.MutableList;
|
import org.eclipse.collections.api.list.MutableList;
|
||||||
import org.eclipse.collections.impl.list.mutable.FastList;
|
import org.eclipse.collections.impl.list.mutable.FastList;
|
||||||
|
|
||||||
import org.assertj.core.api.Assertions;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
public class CollectPatternUnitTest {
|
public class CollectPatternUnitTest {
|
@ -1,12 +1,11 @@
|
|||||||
package com.baeldung.eclipsecollections;
|
package com.baeldung.eclipsecollections;
|
||||||
|
|
||||||
import org.assertj.core.api.Assertions;
|
|
||||||
import org.eclipse.collections.api.list.MutableList;
|
|
||||||
import org.eclipse.collections.impl.list.mutable.FastList;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.assertj.core.api.Assertions;
|
||||||
|
import org.eclipse.collections.api.list.MutableList;
|
||||||
|
import org.eclipse.collections.impl.list.mutable.FastList;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
@ -1,7 +1,5 @@
|
|||||||
package com.baeldung.eclipsecollections;
|
package com.baeldung.eclipsecollections;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
|
||||||
|
|
||||||
import org.eclipse.collections.api.tuple.Pair;
|
import org.eclipse.collections.api.tuple.Pair;
|
||||||
import org.eclipse.collections.impl.map.mutable.UnifiedMap;
|
import org.eclipse.collections.impl.map.mutable.UnifiedMap;
|
||||||
import org.eclipse.collections.impl.tuple.Tuples;
|
import org.eclipse.collections.impl.tuple.Tuples;
|
@ -1,11 +1,10 @@
|
|||||||
package com.baeldung.eclipsecollections;
|
package com.baeldung.eclipsecollections;
|
||||||
|
|
||||||
|
import org.assertj.core.api.Assertions;
|
||||||
import org.eclipse.collections.api.list.MutableList;
|
import org.eclipse.collections.api.list.MutableList;
|
||||||
import org.eclipse.collections.api.tuple.Pair;
|
import org.eclipse.collections.api.tuple.Pair;
|
||||||
import org.eclipse.collections.impl.factory.Lists;
|
import org.eclipse.collections.impl.factory.Lists;
|
||||||
import org.eclipse.collections.impl.tuple.Tuples;
|
import org.eclipse.collections.impl.tuple.Tuples;
|
||||||
|
|
||||||
import org.assertj.core.api.Assertions;
|
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
@ -5,15 +5,9 @@ import static org.junit.jupiter.api.Assertions.assertNotEquals;
|
|||||||
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||||
import static org.junit.jupiter.api.Assertions.assertNull;
|
import static org.junit.jupiter.api.Assertions.assertNull;
|
||||||
|
|
||||||
import com.baeldung.modelmapper.domain.Game;
|
|
||||||
import com.baeldung.modelmapper.domain.GameMode;
|
|
||||||
import com.baeldung.modelmapper.domain.GameSettings;
|
|
||||||
import com.baeldung.modelmapper.domain.Player;
|
|
||||||
import com.baeldung.modelmapper.dto.GameDTO;
|
|
||||||
import com.baeldung.modelmapper.dto.PlayerDTO;
|
|
||||||
import com.baeldung.modelmapper.repository.GameRepository;
|
|
||||||
import java.time.Instant;
|
import java.time.Instant;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
import org.junit.jupiter.api.BeforeEach;
|
import org.junit.jupiter.api.BeforeEach;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.modelmapper.Condition;
|
import org.modelmapper.Condition;
|
||||||
@ -24,6 +18,14 @@ import org.modelmapper.Provider;
|
|||||||
import org.modelmapper.TypeMap;
|
import org.modelmapper.TypeMap;
|
||||||
import org.modelmapper.convention.MatchingStrategies;
|
import org.modelmapper.convention.MatchingStrategies;
|
||||||
|
|
||||||
|
import com.baeldung.modelmapper.domain.Game;
|
||||||
|
import com.baeldung.modelmapper.domain.GameMode;
|
||||||
|
import com.baeldung.modelmapper.domain.GameSettings;
|
||||||
|
import com.baeldung.modelmapper.domain.Player;
|
||||||
|
import com.baeldung.modelmapper.dto.GameDTO;
|
||||||
|
import com.baeldung.modelmapper.dto.PlayerDTO;
|
||||||
|
import com.baeldung.modelmapper.repository.GameRepository;
|
||||||
|
|
||||||
public class ModelMapperUnitTest {
|
public class ModelMapperUnitTest {
|
||||||
|
|
||||||
ModelMapper mapper;
|
ModelMapper mapper;
|
@ -1,6 +1,14 @@
|
|||||||
package com.baeldung.pcollections;
|
package com.baeldung.pcollections;
|
||||||
|
|
||||||
import org.junit.Test;
|
import static org.junit.Assert.assertFalse;
|
||||||
|
import static org.junit.Assert.assertTrue;
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
import org.pcollections.HashPMap;
|
import org.pcollections.HashPMap;
|
||||||
import org.pcollections.HashTreePMap;
|
import org.pcollections.HashTreePMap;
|
||||||
import org.pcollections.HashTreePSet;
|
import org.pcollections.HashTreePSet;
|
||||||
@ -8,14 +16,6 @@ import org.pcollections.MapPSet;
|
|||||||
import org.pcollections.PVector;
|
import org.pcollections.PVector;
|
||||||
import org.pcollections.TreePVector;
|
import org.pcollections.TreePVector;
|
||||||
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
|
||||||
import static org.junit.Assert.assertFalse;
|
|
||||||
import static org.junit.Assert.assertTrue;
|
|
||||||
|
|
||||||
public class PCollectionsUnitTest {
|
public class PCollectionsUnitTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
@ -1,6 +1,7 @@
|
|||||||
package com.baeldung.stm;
|
package com.baeldung.stm;
|
||||||
|
|
||||||
import org.junit.Test;
|
import static org.assertj.core.api.Java6Assertions.assertThat;
|
||||||
|
import static org.junit.Assert.assertTrue;
|
||||||
|
|
||||||
import java.util.concurrent.CountDownLatch;
|
import java.util.concurrent.CountDownLatch;
|
||||||
import java.util.concurrent.ExecutorService;
|
import java.util.concurrent.ExecutorService;
|
||||||
@ -8,8 +9,7 @@ import java.util.concurrent.Executors;
|
|||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import java.util.concurrent.atomic.AtomicBoolean;
|
import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
|
|
||||||
import static org.assertj.core.api.Java6Assertions.assertThat;
|
import org.junit.Test;
|
||||||
import static org.junit.Assert.assertTrue;
|
|
||||||
|
|
||||||
public class AccountUnitTest {
|
public class AccountUnitTest {
|
||||||
|
|
@ -305,6 +305,7 @@
|
|||||||
<debezium.version>2.1.3.Final</debezium.version>
|
<debezium.version>2.1.3.Final</debezium.version>
|
||||||
<flexy-pool.version>2.2.3</flexy-pool.version>
|
<flexy-pool.version>2.2.3</flexy-pool.version>
|
||||||
<testcontainers-version>1.17.6</testcontainers-version>
|
<testcontainers-version>1.17.6</testcontainers-version>
|
||||||
|
<mapdb.version>3.0.8</mapdb.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
</project>
|
</project>
|
@ -4,3 +4,4 @@
|
|||||||
- [Transferring a File Through SFTP in Java](https://www.baeldung.com/java-file-sftp)
|
- [Transferring a File Through SFTP in Java](https://www.baeldung.com/java-file-sftp)
|
||||||
- [How to Create Password-Protected Zip Files and Unzip Them in Java](https://www.baeldung.com/java-password-protected-zip-unzip)
|
- [How to Create Password-Protected Zip Files and Unzip Them in Java](https://www.baeldung.com/java-password-protected-zip-unzip)
|
||||||
- [How to Create CSV File from POJO with Custom Column Headers and Positions](https://www.baeldung.com/java-create-csv-pojo-customize-columns)
|
- [How to Create CSV File from POJO with Custom Column Headers and Positions](https://www.baeldung.com/java-create-csv-pojo-customize-columns)
|
||||||
|
- [Delete a Directory Recursively in Java](https://www.baeldung.com/java-delete-directory)
|
||||||
|
@ -5,18 +5,6 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>libraries-io</artifactId>
|
<artifactId>libraries-io</artifactId>
|
||||||
<name>libraries-io</name>
|
<name>libraries-io</name>
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<source>17</source>
|
|
||||||
<target>17</target>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>com.baeldung</groupId>
|
<groupId>com.baeldung</groupId>
|
||||||
@ -51,8 +39,31 @@
|
|||||||
<artifactId>opencsv</artifactId>
|
<artifactId>opencsv</artifactId>
|
||||||
<version>${opencsv.version}</version>
|
<version>${opencsv.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>commons-io</groupId>
|
||||||
|
<artifactId>commons-io</artifactId>
|
||||||
|
<version>${commons-io.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework</groupId>
|
||||||
|
<artifactId>spring-web</artifactId>
|
||||||
|
<version>${spring.version}</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<source>17</source>
|
||||||
|
<target>17</target>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<!-- sftp -->
|
<!-- sftp -->
|
||||||
<jsch.version>0.1.55</jsch.version>
|
<jsch.version>0.1.55</jsch.version>
|
||||||
@ -60,9 +71,7 @@
|
|||||||
<vfs.version>2.4</vfs.version>
|
<vfs.version>2.4</vfs.version>
|
||||||
<zip4j.version>2.9.0</zip4j.version>
|
<zip4j.version>2.9.0</zip4j.version>
|
||||||
<opencsv.version>5.8</opencsv.version>
|
<opencsv.version>5.8</opencsv.version>
|
||||||
<maven.compiler.source>17</maven.compiler.source>
|
<spring.version>4.3.8.RELEASE</spring.version>
|
||||||
<maven.compiler.target>17</maven.compiler.target>
|
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
</project>
|
</project>
|
@ -1,4 +1,4 @@
|
|||||||
package com.baeldung.io;
|
package com.baeldung.java.io;
|
||||||
|
|
||||||
import static org.junit.Assert.assertFalse;
|
import static org.junit.Assert.assertFalse;
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
8
libraries-testing-2/README.md
Normal file
8
libraries-testing-2/README.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
## Testing
|
||||||
|
|
||||||
|
This module contains articles about test libraries.
|
||||||
|
|
||||||
|
### Relevant articles
|
||||||
|
|
||||||
|
- [Consumer Driven Contracts with Pact](https://www.baeldung.com/pact-junit-consumer-driven-contracts)
|
||||||
|
- - More articles: [[<-- prev]](../libraries-testing)
|
56
libraries-testing-2/pom.xml
Normal file
56
libraries-testing-2/pom.xml
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<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">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<artifactId>libraries-testing-2</artifactId>
|
||||||
|
<name>libraries-testing-2</name>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<groupId>com.baeldung</groupId>
|
||||||
|
<artifactId>parent-boot-2</artifactId>
|
||||||
|
<version>0.0.1-SNAPSHOT</version>
|
||||||
|
<relativePath>../parent-boot-2</relativePath>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>au.com.dius</groupId>
|
||||||
|
<artifactId>pact-jvm-provider-junit5_2.12</artifactId>
|
||||||
|
<version>${pact.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>au.com.dius</groupId>
|
||||||
|
<artifactId>pact-jvm-consumer-junit5_2.12</artifactId>
|
||||||
|
<version>${pact.version}</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework</groupId>
|
||||||
|
<artifactId>spring-web</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<systemPropertyVariables>
|
||||||
|
<pact.rootDir>target/mypacts</pact.rootDir>
|
||||||
|
</systemPropertyVariables>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<pact.version>3.6.3</pact.version>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
</project>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user