[JAVA-22519] Move articles from generic libraries module to specific library modules (#15416)
This commit is contained in:
parent
51e9f6cf37
commit
5e4ca88972
|
@ -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)
|
|
@ -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.Props;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.akka;
|
||||
package com.baeldung.akkaactors;
|
||||
|
||||
import akka.actor.AbstractActor;
|
||||
import akka.event.Logging;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.akka;
|
||||
package com.baeldung.akkaactors;
|
||||
|
||||
import akka.actor.AbstractActor;
|
||||
import akka.actor.Props;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.akka;
|
||||
package com.baeldung.akkaactors;
|
||||
|
||||
import akka.actor.AbstractActor;
|
||||
import akka.actor.ActorRef;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.akka;
|
||||
package com.baeldung.akkaactors;
|
||||
|
||||
import akka.actor.AbstractActor;
|
||||
import akka.event.Logging;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.akka;
|
||||
package com.baeldung.akkaactors;
|
||||
|
||||
import akka.actor.ActorRef;
|
||||
import akka.actor.ActorSystem;
|
|
@ -14,6 +14,7 @@
|
|||
</parent>
|
||||
|
||||
<modules>
|
||||
<module>akka-actors</module>
|
||||
<module>akka-http</module>
|
||||
<module>akka-streams</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)
|
||||
- [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)
|
||||
- [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)
|
||||
- [Templating with Handlebars](https://www.baeldung.com/handlebars)
|
||||
- [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)
|
||||
- [Guide to MapDB](https://www.baeldung.com/mapdb)
|
||||
- More articles [[<-- prev]](/libraries) [[next -->]](/libraries-3)
|
||||
|
||||
|
|
|
@ -13,11 +13,6 @@
|
|||
</parent>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.mapdb</groupId>
|
||||
<artifactId>mapdb</artifactId>
|
||||
<version>${mapdb.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.github.classgraph</groupId>
|
||||
<artifactId>classgraph</artifactId>
|
||||
|
@ -41,17 +36,6 @@
|
|||
<artifactId>spring-boot-starter</artifactId>
|
||||
<version>${spring-boot-starter.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>edu.uci.ics</groupId>
|
||||
<artifactId>crawler4j</artifactId>
|
||||
|
@ -93,6 +77,11 @@
|
|||
<artifactId>je</artifactId>
|
||||
<version>18.3.12</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mapdb</groupId>
|
||||
<artifactId>mapdb</artifactId>
|
||||
<version>${mapdb.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
@ -100,10 +89,6 @@
|
|||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<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>
|
||||
</plugins>
|
||||
</build>
|
||||
|
@ -112,7 +97,6 @@
|
|||
<mapdb.version>3.0.8</mapdb.version>
|
||||
<classgraph.version>4.8.153</classgraph.version>
|
||||
<jbpm.version>7.20.0.Final</jbpm.version>
|
||||
<chronicle.map.version>3.24ea1</chronicle.map.version>
|
||||
<crawler4j.version>4.4.0</crawler4j.version>
|
||||
<spring-boot-starter.version>2.7.8</spring-boot-starter.version>
|
||||
<mesos.library.version>1.11.0</mesos.library.version>
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
package com.baeldung.mapdb;
|
||||
|
||||
import static junit.framework.Assert.assertEquals;
|
||||
|
||||
import java.util.NavigableSet;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.mapdb.DB;
|
||||
import org.mapdb.DBMaker;
|
||||
import org.mapdb.Serializer;
|
||||
|
||||
import java.util.NavigableSet;
|
||||
|
||||
import static junit.framework.Assert.assertEquals;
|
||||
|
||||
public class CollectionsUnitTest {
|
||||
|
||||
@Test
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
package com.baeldung.mapdb;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.junit.Test;
|
||||
import org.mapdb.*;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import static junit.framework.Assert.assertEquals;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.mapdb.DB;
|
||||
import org.mapdb.DBMaker;
|
||||
import org.mapdb.HTreeMap;
|
||||
import org.mapdb.Serializer;
|
||||
|
||||
public class HTreeMapUnitTest {
|
||||
|
||||
|
|
|
@ -1,25 +1,25 @@
|
|||
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.DBMaker;
|
||||
import org.mapdb.HTreeMap;
|
||||
|
||||
import java.util.concurrent.ConcurrentMap;
|
||||
|
||||
import static junit.framework.Assert.assertEquals;
|
||||
|
||||
public class HelloBaeldungUnitTest {
|
||||
|
||||
@Test
|
||||
public void givenInMemoryDBInstantiateCorrectly_whenDataSavedAndRetrieved_checkRetrievalCorrect() {
|
||||
|
||||
DB db = DBMaker.memoryDB().make();
|
||||
DB db = DBMaker.memoryDB()
|
||||
.make();
|
||||
|
||||
String welcomeMessageKey = "Welcome Message";
|
||||
String welcomeMessageString = "Hello Baeldung!";
|
||||
|
||||
HTreeMap myMap = db.hashMap("myMap").createOrOpen();
|
||||
HTreeMap myMap = db.hashMap("myMap")
|
||||
.createOrOpen();
|
||||
myMap.put(welcomeMessageKey, welcomeMessageString);
|
||||
|
||||
String welcomeMessageFromDB = (String) myMap.get(welcomeMessageKey);
|
||||
|
@ -32,12 +32,14 @@ public class HelloBaeldungUnitTest {
|
|||
@Test
|
||||
public void givenInFileDBInstantiateCorrectly_whenDataSavedAndRetrieved_checkRetrievalCorrect() {
|
||||
|
||||
DB db = DBMaker.fileDB("file.db").make();
|
||||
DB db = DBMaker.fileDB("file.db")
|
||||
.make();
|
||||
|
||||
String welcomeMessageKey = "Welcome Message";
|
||||
String welcomeMessageString = "Hello Baeldung!";
|
||||
|
||||
HTreeMap myMap = db.hashMap("myMap").createOrOpen();
|
||||
HTreeMap myMap = db.hashMap("myMap")
|
||||
.createOrOpen();
|
||||
myMap.put(welcomeMessageKey, welcomeMessageString);
|
||||
|
||||
String welcomeMessageFromDB = (String) myMap.get(welcomeMessageKey);
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
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.DBMaker;
|
||||
import org.mapdb.HTreeMap;
|
||||
import org.mapdb.Serializer;
|
||||
|
||||
import static junit.framework.Assert.assertEquals;
|
||||
|
||||
public class InMemoryModesUnitTest {
|
||||
|
||||
@Test
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
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.SortedTableMap;
|
||||
import org.mapdb.volume.MappedFileVol;
|
||||
import org.mapdb.volume.Volume;
|
||||
|
||||
import static junit.framework.Assert.assertEquals;
|
||||
|
||||
public class SortedTableMapUnitTest {
|
||||
|
||||
private static final String VOLUME_LOCATION = "sortedTableMapVol.db";
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
package com.baeldung.mapdb;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.mapdb.DB;
|
||||
import org.mapdb.DBMaker;
|
||||
import org.mapdb.Serializer;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
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 {
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
||||
### 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 Takes](https://www.baeldung.com/java-takes)
|
||||
- [Using NullAway to Avoid NullPointerExceptions](https://www.baeldung.com/java-nullaway)
|
||||
- [Introduction to Alibaba Arthas](https://www.baeldung.com/java-alibaba-arthas-intro)
|
||||
- [Intro to Structurizr](https://www.baeldung.com/structurizr)
|
||||
|
|
|
@ -18,17 +18,6 @@
|
|||
<artifactId>lombok</artifactId>
|
||||
<version>${lombok.version}</version>
|
||||
</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>com.jcabi</groupId>
|
||||
<artifactId>jcabi-aspects</artifactId>
|
||||
|
@ -40,21 +29,6 @@
|
|||
<version>${aspectjrt.version}</version>
|
||||
<scope>runtime</scope>
|
||||
</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>
|
||||
<groupId>org.apache.velocity</groupId>
|
||||
<artifactId>velocity-engine-core</artifactId>
|
||||
|
@ -159,57 +133,13 @@
|
|||
</resources>
|
||||
</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>
|
||||
<cactoos.version>0.43</cactoos.version>
|
||||
<cache2k.version>1.2.3.Final</cache2k.version>
|
||||
<jcabi-aspects.version>0.22.6</jcabi-aspects.version>
|
||||
<aspectjrt.version>1.9.20.1</aspectjrt.version>
|
||||
<jcabi-maven-plugin.version>0.14.1</jcabi-maven-plugin.version>
|
||||
<aspectjtools.version>1.9.20.1</aspectjtools.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>
|
||||
<nullaway.version>0.3.0</nullaway.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.
|
||||
|
||||
### 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)
|
||||
- [Delete a Directory Recursively in Java](https://www.baeldung.com/java-delete-directory)
|
||||
- [Guide to JDeferred](https://www.baeldung.com/jdeferred)
|
||||
- [Introduction to MBassador](https://www.baeldung.com/mbassador)
|
||||
- [Using Pairs in Java](https://www.baeldung.com/java-pairs)
|
||||
|
|
|
@ -17,11 +17,6 @@
|
|||
<artifactId>jdeferred-core</artifactId>
|
||||
<version>${jdeferred.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.collections</groupId>
|
||||
<artifactId>eclipse-collections</artifactId>
|
||||
<version>${eclipse-collections.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.olap4j</groupId>
|
||||
<artifactId>olap4j</artifactId>
|
||||
|
@ -37,11 +32,6 @@
|
|||
<artifactId>noexception</artifactId>
|
||||
<version>${noexception.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>rome</groupId>
|
||||
<artifactId>rome</artifactId>
|
||||
<version>${rome.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-web</artifactId>
|
||||
|
@ -57,11 +47,6 @@
|
|||
<artifactId>servlet-api</artifactId>
|
||||
<version>${javax.servlet.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.pcollections</groupId>
|
||||
<artifactId>pcollections</artifactId>
|
||||
<version>${pcollections.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.awaitility</groupId>
|
||||
<artifactId>awaitility</artifactId>
|
||||
|
@ -113,11 +98,6 @@
|
|||
<artifactId>commons-lang3</artifactId>
|
||||
<version>${commons-lang3.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-io</groupId>
|
||||
<artifactId>commons-io</artifactId>
|
||||
<version>${commons-io.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<properties>
|
||||
|
@ -126,11 +106,9 @@
|
|||
<jdeferred.version>1.2.6</jdeferred.version>
|
||||
<noexception.version>1.1.0</noexception.version>
|
||||
<mbassador.version>1.3.1</mbassador.version>
|
||||
<rome.version>1.0</rome.version>
|
||||
<spring.version>4.3.8.RELEASE</spring.version>
|
||||
<javax.servlet.version>2.5</javax.servlet.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>
|
||||
<streamex.version>0.6.5</streamex.version>
|
||||
<javax.el.version>3.0.0</javax.el.version>
|
||||
|
@ -138,7 +116,6 @@
|
|||
<olap4j.version>1.2.0</olap4j.version>
|
||||
<javafx.version>19</javafx.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>
|
||||
</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.
|
||||
|
||||
### Relevant articles
|
||||
- [Introduction to Caffeine](https://www.baeldung.com/java-caching-caffeine)
|
||||
- [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)
|
||||
- [Consumer Driven Contracts with Pact](https://www.baeldung.com/pact-junit-consumer-driven-contracts)
|
||||
- [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)
|
||||
- [Java Concurrency Utility with JCTools](https://www.baeldung.com/java-concurrency-jc-tools)
|
||||
- More articles [[<-- prev]](/libraries-4) [[next -->]](/libraries-6)
|
||||
|
|
|
@ -6,49 +6,17 @@
|
|||
<artifactId>libraries-5</artifactId>
|
||||
|
||||
<parent>
|
||||
<artifactId>parent-modules</artifactId>
|
||||
<groupId>com.baeldung</groupId>
|
||||
<artifactId>parent-boot-2</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<relativePath>../parent-boot-2</relativePath>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-web</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jooq</groupId>
|
||||
<artifactId>jool</artifactId>
|
||||
<version>${jool.version}</version>
|
||||
</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 -->
|
||||
<dependency>
|
||||
<groupId>com.github.docker-java</groupId>
|
||||
|
@ -69,18 +37,6 @@
|
|||
</exclusion>
|
||||
</exclusions>
|
||||
</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 -->
|
||||
<dependency>
|
||||
<groupId>io.atlassian.fugue</groupId>
|
||||
|
@ -92,44 +48,14 @@
|
|||
<artifactId>jnats</artifactId>
|
||||
<version>${jnats.version}</version>
|
||||
</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>
|
||||
|
||||
<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>
|
||||
<jool.version>0.9.12</jool.version>
|
||||
<spring.version>4.3.8.RELEASE</spring.version>
|
||||
<scala.version>2.12</scala.version>
|
||||
<typesafe-akka.version>2.5.11</typesafe-akka.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>
|
||||
<jnats.version>1.0</jnats.version>
|
||||
<jctools.version>2.1.2</jctools.version>
|
||||
</properties>
|
||||
|
||||
</project>
|
|
@ -10,11 +10,9 @@ Remember, for advanced libraries like [Jackson](/jackson) and [JUnit](/testing-m
|
|||
### Relevant articles
|
||||
- [Introduction to JavaPoet](https://www.baeldung.com/java-poet)
|
||||
- [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)
|
||||
- [Guide to Simple Binary Encoding](https://www.baeldung.com/java-sbe)
|
||||
- [Java-R Integration](https://www.baeldung.com/java-r-integration)
|
||||
- [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)
|
||||
- [Guide to Using ModelMapper](https://www.baeldung.com/java-modelmapper)
|
||||
- More articles [[<-- prev]](/libraries-5) [[next -->]](/libraries-7)
|
||||
|
|
|
@ -42,12 +42,6 @@
|
|||
<artifactId>javapoet</artifactId>
|
||||
<version>${javapoet.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mockftpserver</groupId>
|
||||
<artifactId>MockFtpServer</artifactId>
|
||||
<version>${mockftpserver.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-lang3</artifactId>
|
||||
|
@ -63,11 +57,6 @@
|
|||
<artifactId>guava</artifactId>
|
||||
<version>${guava.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-net</groupId>
|
||||
<artifactId>commons-net</artifactId>
|
||||
<version>${commons-net.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-io</groupId>
|
||||
<artifactId>commons-io</artifactId>
|
||||
|
@ -95,11 +84,6 @@
|
|||
<artifactId>libphonenumber</artifactId>
|
||||
<version>${libphonenumber.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.modelmapper</groupId>
|
||||
<artifactId>modelmapper</artifactId>
|
||||
<version>${org.modelmapper.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.agrona</groupId>
|
||||
<artifactId>agrona</artifactId>
|
||||
|
@ -190,15 +174,12 @@
|
|||
|
||||
<properties>
|
||||
<javapoet.version>1.10.0</javapoet.version>
|
||||
<mockftpserver.version>2.7.1</mockftpserver.version>
|
||||
<functionaljava.version>4.8.1</functionaljava.version>
|
||||
<resilience4j.version>2.1.0</resilience4j.version>
|
||||
<commons-net.version>3.6</commons-net.version>
|
||||
<renjin.version>3.5-beta72</renjin.version>
|
||||
<rcaller.version>3.0</rcaller.version>
|
||||
<rserve.version>1.8.1</rserve.version>
|
||||
<libphonenumber.version>8.12.9</libphonenumber.version>
|
||||
<org.modelmapper.version>3.2.0</org.modelmapper.version>
|
||||
<agrona.version>1.17.1</agrona.version>
|
||||
<exec-maven-plugin.version>1.6.0</exec-maven-plugin.version>
|
||||
<sbe-tool.version>1.27.0</sbe-tool.version>
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
## Relevant Articles
|
||||
- [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>
|
||||
<version>${opennlp-tools.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.beykery</groupId>
|
||||
<artifactId>neuroph</artifactId>
|
||||
<version>${neuroph.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<properties>
|
||||
<stanford-corenlp.version>4.5.3</stanford-corenlp.version>
|
||||
<opennlp-tools.version>2.1.1</opennlp-tools.version>
|
||||
<neuroph.version>2.92</neuroph.version>
|
||||
</properties>
|
||||
|
||||
</project>
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.neuroph;
|
||||
package neuroph;
|
||||
|
||||
import org.neuroph.core.Layer;
|
||||
import org.neuroph.core.NeuralNetwork;
|
|
@ -1,11 +1,13 @@
|
|||
package com.baeldung.neuroph;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.neuroph.core.NeuralNetwork;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
import neuroph.NeurophXOR;
|
||||
|
||||
public class XORIntegrationTest {
|
||||
private NeuralNetwork ann = null;
|
|
@ -5,4 +5,5 @@ This module contains articles about Apache Commons libraries.
|
|||
### Relevant articles
|
||||
- [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)
|
||||
-
|
||||
- More articles: [[<--prev]](../libraries-apache-commons)
|
||||
|
|
|
@ -33,6 +33,17 @@
|
|||
<artifactId>commons-text</artifactId>
|
||||
<version>${apache-commons-text.version}</version>
|
||||
</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>
|
||||
|
||||
<properties>
|
||||
|
@ -40,6 +51,8 @@
|
|||
<ant.version>1.10.13</ant.version>
|
||||
<commons-vfs2.version>2.9.0</commons-vfs2.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>
|
||||
|
||||
</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.ftp.FTPClient;
|
||||
import org.apache.commons.net.ftp.FTPFile;
|
||||
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 {
|
||||
|
||||
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.Before;
|
||||
|
@ -10,13 +17,6 @@ import org.mockftpserver.fake.filesystem.FileEntry;
|
|||
import org.mockftpserver.fake.filesystem.FileSystem;
|
||||
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 {
|
||||
|
||||
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.Before;
|
||||
|
@ -10,18 +19,6 @@ import org.mockftpserver.fake.filesystem.FileEntry;
|
|||
import org.mockftpserver.fake.filesystem.FileSystem;
|
||||
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 {
|
||||
|
||||
private FakeFtpServer fakeFtpServer;
|
|
@ -1,3 +1,4 @@
|
|||
### Relevant Articles:
|
||||
|
||||
- [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>
|
||||
<version>${quasar.version}</version>
|
||||
</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>
|
||||
|
||||
<build>
|
||||
|
@ -77,6 +87,7 @@
|
|||
|
||||
<properties>
|
||||
<quasar.version>0.8.0</quasar.version>
|
||||
<jctools.version>2.1.2</jctools.version>
|
||||
</properties>
|
||||
|
||||
</project>
|
|
@ -1,14 +1,27 @@
|
|||
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.concurrent.ArrayBlockingQueue;
|
||||
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)
|
||||
@OutputTimeUnit(TimeUnit.NANOSECONDS)
|
||||
@Fork(1)
|
|
@ -1,20 +1,19 @@
|
|||
package com.baeldung.jctools;
|
||||
|
||||
import org.assertj.core.api.Assertions;
|
||||
import org.jctools.queues.SpscArrayQueue;
|
||||
import org.jctools.queues.SpscChunkedArrayQueue;
|
||||
import org.junit.Test;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.fail;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.CountDownLatch;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
import java.util.function.IntConsumer;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.IntStream;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.fail;
|
||||
import org.assertj.core.api.Assertions;
|
||||
import org.jctools.queues.SpscArrayQueue;
|
||||
import org.jctools.queues.SpscChunkedArrayQueue;
|
||||
import org.junit.Test;
|
||||
|
||||
public class JCToolsUnitTest {
|
||||
|
|
@ -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)
|
|
@ -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;
|
||||
|
||||
import com.baeldung.modelmapper.domain.GameMode;
|
||||
import java.util.List;
|
||||
|
||||
import com.baeldung.modelmapper.domain.GameMode;
|
||||
|
||||
public class GameDTO {
|
||||
|
||||
private Long id;
|
|
@ -1,9 +1,10 @@
|
|||
package com.baeldung.modelmapper.repository;
|
||||
|
||||
import com.baeldung.modelmapper.domain.Game;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.baeldung.modelmapper.domain.Game;
|
||||
|
||||
/**
|
||||
* Sample in-memory Game Repository
|
||||
*/
|
|
@ -3,8 +3,8 @@ package com.baeldung.cactoos;
|
|||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.junit.Test;
|
||||
|
|
@ -1,6 +1,8 @@
|
|||
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.Map;
|
||||
|
@ -11,7 +13,11 @@ import javax.annotation.Nonnull;
|
|||
import org.junit.Assert;
|
||||
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 {
|
||||
|
|
@ -1,132 +1,132 @@
|
|||
package com.baeldung.chroniclemap;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.equalTo;
|
||||
import static org.hamcrest.CoreMatchers.is;
|
||||
import static org.junit.Assert.assertThat;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.IntStream;
|
||||
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import net.openhft.chronicle.core.values.LongValue;
|
||||
import net.openhft.chronicle.map.ChronicleMap;
|
||||
import net.openhft.chronicle.map.ExternalMapQueryContext;
|
||||
import net.openhft.chronicle.map.MapEntry;
|
||||
import net.openhft.chronicle.values.Values;
|
||||
|
||||
public class ChronicleMapUnitTest {
|
||||
|
||||
static ChronicleMap<LongValue, CharSequence> persistedCountryMap = null;
|
||||
|
||||
static ChronicleMap<LongValue, CharSequence> inMemoryCountryMap = null;
|
||||
|
||||
static ChronicleMap<Integer, Set<Integer>> multiMap = null;
|
||||
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
@BeforeClass
|
||||
public static void init() {
|
||||
try {
|
||||
inMemoryCountryMap = ChronicleMap.of(LongValue.class, CharSequence.class)
|
||||
.name("country-map")
|
||||
.entries(50)
|
||||
.averageValue("America")
|
||||
.create();
|
||||
|
||||
persistedCountryMap = ChronicleMap.of(LongValue.class, CharSequence.class)
|
||||
.name("country-map")
|
||||
.entries(50)
|
||||
.averageValue("America")
|
||||
.createPersistedTo(new File(System.getProperty("user.home") + "/country-details.dat"));
|
||||
|
||||
Set<Integer> averageValue = IntStream.of(1, 2)
|
||||
.boxed()
|
||||
.collect(Collectors.toSet());
|
||||
multiMap = ChronicleMap.of(Integer.class, (Class<Set<Integer>>) (Class) Set.class)
|
||||
.name("multi-map")
|
||||
.entries(50)
|
||||
.averageValue(averageValue)
|
||||
.create();
|
||||
|
||||
LongValue qatarKey = Values.newHeapInstance(LongValue.class);
|
||||
qatarKey.setValue(1);
|
||||
inMemoryCountryMap.put(qatarKey, "Qatar");
|
||||
|
||||
LongValue key = Values.newHeapInstance(LongValue.class);
|
||||
key.setValue(1);
|
||||
persistedCountryMap.put(key, "Romania");
|
||||
key.setValue(2);
|
||||
persistedCountryMap.put(key, "India");
|
||||
|
||||
Set<Integer> set1 = new HashSet<>();
|
||||
set1.add(1);
|
||||
set1.add(2);
|
||||
multiMap.put(1, set1);
|
||||
|
||||
Set<Integer> set2 = new HashSet<>();
|
||||
set2.add(3);
|
||||
multiMap.put(2, set2);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void givenGetQuery_whenCalled_shouldReturnResult() {
|
||||
LongValue key = Values.newHeapInstance(LongValue.class);
|
||||
key.setValue(1);
|
||||
CharSequence country = inMemoryCountryMap.get(key);
|
||||
assertThat(country.toString(), is(equalTo("Qatar")));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void givenGetUsingQuery_whenCalled_shouldReturnResult() {
|
||||
LongValue key = Values.newHeapInstance(LongValue.class);
|
||||
StringBuilder country = new StringBuilder();
|
||||
key.setValue(1);
|
||||
persistedCountryMap.getUsing(key, country);
|
||||
assertThat(country.toString(), is(equalTo("Romania")));
|
||||
key.setValue(2);
|
||||
persistedCountryMap.getUsing(key, country);
|
||||
assertThat(country.toString(), is(equalTo("India")));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void givenMultipleKeyQuery_whenProcessed_shouldChangeTheValue() {
|
||||
try (ExternalMapQueryContext<Integer, Set<Integer>, ?> fistContext = multiMap.queryContext(1)) {
|
||||
try (ExternalMapQueryContext<Integer, Set<Integer>, ?> secondContext = multiMap.queryContext(2)) {
|
||||
fistContext.updateLock()
|
||||
.lock();
|
||||
secondContext.updateLock()
|
||||
.lock();
|
||||
MapEntry<Integer, Set<Integer>> firstEntry = fistContext.entry();
|
||||
Set<Integer> firstSet = firstEntry.value()
|
||||
.get();
|
||||
firstSet.remove(2);
|
||||
MapEntry<Integer, Set<Integer>> secondEntry = secondContext.entry();
|
||||
Set<Integer> secondSet = secondEntry.value()
|
||||
.get();
|
||||
secondSet.add(4);
|
||||
firstEntry.doReplaceValue(fistContext.wrapValueAsData(firstSet));
|
||||
secondEntry.doReplaceValue(secondContext.wrapValueAsData(secondSet));
|
||||
}
|
||||
} finally {
|
||||
assertThat(multiMap.get(1)
|
||||
.size(), is(equalTo(1)));
|
||||
assertThat(multiMap.get(2)
|
||||
.size(), is(equalTo(2)));
|
||||
}
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void finish() {
|
||||
persistedCountryMap.close();
|
||||
inMemoryCountryMap.close();
|
||||
multiMap.close();
|
||||
}
|
||||
}
|
||||
package com.baeldung.chroniclemap;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.equalTo;
|
||||
import static org.hamcrest.CoreMatchers.is;
|
||||
import static org.junit.Assert.assertThat;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.IntStream;
|
||||
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import net.openhft.chronicle.core.values.LongValue;
|
||||
import net.openhft.chronicle.map.ChronicleMap;
|
||||
import net.openhft.chronicle.map.ExternalMapQueryContext;
|
||||
import net.openhft.chronicle.map.MapEntry;
|
||||
import net.openhft.chronicle.values.Values;
|
||||
|
||||
public class ChronicleMapUnitTest {
|
||||
|
||||
static ChronicleMap<LongValue, CharSequence> persistedCountryMap = null;
|
||||
|
||||
static ChronicleMap<LongValue, CharSequence> inMemoryCountryMap = null;
|
||||
|
||||
static ChronicleMap<Integer, Set<Integer>> multiMap = null;
|
||||
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
@BeforeClass
|
||||
public static void init() {
|
||||
try {
|
||||
inMemoryCountryMap = ChronicleMap.of(LongValue.class, CharSequence.class)
|
||||
.name("country-map")
|
||||
.entries(50)
|
||||
.averageValue("America")
|
||||
.create();
|
||||
|
||||
persistedCountryMap = ChronicleMap.of(LongValue.class, CharSequence.class)
|
||||
.name("country-map")
|
||||
.entries(50)
|
||||
.averageValue("America")
|
||||
.createPersistedTo(new File(System.getProperty("user.home") + "/country-details.dat"));
|
||||
|
||||
Set<Integer> averageValue = IntStream.of(1, 2)
|
||||
.boxed()
|
||||
.collect(Collectors.toSet());
|
||||
multiMap = ChronicleMap.of(Integer.class, (Class<Set<Integer>>) (Class) Set.class)
|
||||
.name("multi-map")
|
||||
.entries(50)
|
||||
.averageValue(averageValue)
|
||||
.create();
|
||||
|
||||
LongValue qatarKey = Values.newHeapInstance(LongValue.class);
|
||||
qatarKey.setValue(1);
|
||||
inMemoryCountryMap.put(qatarKey, "Qatar");
|
||||
|
||||
LongValue key = Values.newHeapInstance(LongValue.class);
|
||||
key.setValue(1);
|
||||
persistedCountryMap.put(key, "Romania");
|
||||
key.setValue(2);
|
||||
persistedCountryMap.put(key, "India");
|
||||
|
||||
Set<Integer> set1 = new HashSet<>();
|
||||
set1.add(1);
|
||||
set1.add(2);
|
||||
multiMap.put(1, set1);
|
||||
|
||||
Set<Integer> set2 = new HashSet<>();
|
||||
set2.add(3);
|
||||
multiMap.put(2, set2);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void givenGetQuery_whenCalled_shouldReturnResult() {
|
||||
LongValue key = Values.newHeapInstance(LongValue.class);
|
||||
key.setValue(1);
|
||||
CharSequence country = inMemoryCountryMap.get(key);
|
||||
assertThat(country.toString(), is(equalTo("Qatar")));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void givenGetUsingQuery_whenCalled_shouldReturnResult() {
|
||||
LongValue key = Values.newHeapInstance(LongValue.class);
|
||||
StringBuilder country = new StringBuilder();
|
||||
key.setValue(1);
|
||||
persistedCountryMap.getUsing(key, country);
|
||||
assertThat(country.toString(), is(equalTo("Romania")));
|
||||
key.setValue(2);
|
||||
persistedCountryMap.getUsing(key, country);
|
||||
assertThat(country.toString(), is(equalTo("India")));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void givenMultipleKeyQuery_whenProcessed_shouldChangeTheValue() {
|
||||
try (ExternalMapQueryContext<Integer, Set<Integer>, ?> fistContext = multiMap.queryContext(1)) {
|
||||
try (ExternalMapQueryContext<Integer, Set<Integer>, ?> secondContext = multiMap.queryContext(2)) {
|
||||
fistContext.updateLock()
|
||||
.lock();
|
||||
secondContext.updateLock()
|
||||
.lock();
|
||||
MapEntry<Integer, Set<Integer>> firstEntry = fistContext.entry();
|
||||
Set<Integer> firstSet = firstEntry.value()
|
||||
.get();
|
||||
firstSet.remove(2);
|
||||
MapEntry<Integer, Set<Integer>> secondEntry = secondContext.entry();
|
||||
Set<Integer> secondSet = secondEntry.value()
|
||||
.get();
|
||||
secondSet.add(4);
|
||||
firstEntry.doReplaceValue(fistContext.wrapValueAsData(firstSet));
|
||||
secondEntry.doReplaceValue(secondContext.wrapValueAsData(secondSet));
|
||||
}
|
||||
} finally {
|
||||
assertThat(multiMap.get(1)
|
||||
.size(), is(equalTo(1)));
|
||||
assertThat(multiMap.get(2)
|
||||
.size(), is(equalTo(2)));
|
||||
}
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void finish() {
|
||||
persistedCountryMap.close();
|
||||
inMemoryCountryMap.close();
|
||||
multiMap.close();
|
||||
}
|
||||
}
|
|
@ -1,9 +1,8 @@
|
|||
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 org.assertj.core.api.Assertions;
|
||||
import org.junit.Test;
|
||||
|
||||
public class CollectPatternUnitTest {
|
|
@ -1,12 +1,11 @@
|
|||
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.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.Test;
|
||||
|
|
@ -1,7 +1,5 @@
|
|||
package com.baeldung.eclipsecollections;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
import org.eclipse.collections.api.tuple.Pair;
|
||||
import org.eclipse.collections.impl.map.mutable.UnifiedMap;
|
||||
import org.eclipse.collections.impl.tuple.Tuples;
|
|
@ -1,11 +1,10 @@
|
|||
package com.baeldung.eclipsecollections;
|
||||
|
||||
import org.assertj.core.api.Assertions;
|
||||
import org.eclipse.collections.api.list.MutableList;
|
||||
import org.eclipse.collections.api.tuple.Pair;
|
||||
import org.eclipse.collections.impl.factory.Lists;
|
||||
import org.eclipse.collections.impl.tuple.Tuples;
|
||||
|
||||
import org.assertj.core.api.Assertions;
|
||||
import org.junit.Before;
|
||||
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.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.util.Collection;
|
||||
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.modelmapper.Condition;
|
||||
|
@ -24,6 +18,14 @@ import org.modelmapper.Provider;
|
|||
import org.modelmapper.TypeMap;
|
||||
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 {
|
||||
|
||||
ModelMapper mapper;
|
|
@ -1,6 +1,14 @@
|
|||
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.HashTreePMap;
|
||||
import org.pcollections.HashTreePSet;
|
||||
|
@ -8,14 +16,6 @@ import org.pcollections.MapPSet;
|
|||
import org.pcollections.PVector;
|
||||
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 {
|
||||
|
||||
@Test
|
|
@ -1,6 +1,7 @@
|
|||
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.ExecutorService;
|
||||
|
@ -8,8 +9,7 @@ import java.util.concurrent.Executors;
|
|||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
|
||||
import static org.assertj.core.api.Java6Assertions.assertThat;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import org.junit.Test;
|
||||
|
||||
public class AccountUnitTest {
|
||||
|
|
@ -305,6 +305,7 @@
|
|||
<debezium.version>2.1.3.Final</debezium.version>
|
||||
<flexy-pool.version>2.2.3</flexy-pool.version>
|
||||
<testcontainers-version>1.17.6</testcontainers-version>
|
||||
<mapdb.version>3.0.8</mapdb.version>
|
||||
</properties>
|
||||
|
||||
</project>
|
|
@ -4,3 +4,4 @@
|
|||
- [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 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>
|
||||
<artifactId>libraries-io</artifactId>
|
||||
<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>
|
||||
<groupId>com.baeldung</groupId>
|
||||
|
@ -51,8 +39,31 @@
|
|||
<artifactId>opencsv</artifactId>
|
||||
<version>${opencsv.version}</version>
|
||||
</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>
|
||||
|
||||
<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>
|
||||
<!-- sftp -->
|
||||
<jsch.version>0.1.55</jsch.version>
|
||||
|
@ -60,9 +71,7 @@
|
|||
<vfs.version>2.4</vfs.version>
|
||||
<zip4j.version>2.9.0</zip4j.version>
|
||||
<opencsv.version>5.8</opencsv.version>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<spring.version>4.3.8.RELEASE</spring.version>
|
||||
</properties>
|
||||
|
||||
</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.assertTrue;
|
|
@ -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)
|
|
@ -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…
Reference in New Issue