BAEL-5760: Creating a separate mocks-2 module (#12882)

This commit is contained in:
Eugene Kovko 2022-10-17 00:10:50 +02:00 committed by GitHub
parent 7b44b2759f
commit 6da922c20a
25 changed files with 52 additions and 14 deletions

View File

@ -0,0 +1,4 @@
## Relevant articles:
- [Introduction to Datafaker]()

View 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>mocks-2</artifactId>
<name>mocks-2</name>
<parent>
<artifactId>testing-modules</artifactId>
<groupId>com.baeldung</groupId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<dependencies>
<dependency>
<groupId>net.datafaker</groupId>
<artifactId>datafaker</artifactId>
<version>${datefaker.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency>
</dependencies>
<properties>
<datefaker.version>1.6.0</datefaker.version>
<jackson.version>2.13.4</jackson.version>
</properties>
</project>

View File

@ -1,6 +1,6 @@
package com.baeldung.datafaker;
import com.github.javafaker.Faker;
import net.datafaker.Faker;
public class Regexify {
private static final Faker faker = new Faker();

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
</pattern>
</encoder>
</appender>
<root level="INFO">
<appender-ref ref="STDOUT" />
</root>
</configuration>

View File

@ -41,17 +41,6 @@
<artifactId>jimfs</artifactId>
<version>${jimf.version}</version>
</dependency>
<dependency>
<groupId>net.datafaker</groupId>
<artifactId>datafaker</artifactId>
<version>${datefaker.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency>
</dependencies>
@ -61,8 +50,6 @@
<easymock.version>3.5.1</easymock.version>
<jmockit.version>1.41</jmockit.version>
<jimf.version>1.1</jimf.version>
<datefaker.version>1.6.0</datefaker.version>
<jackson.version>2.13.4</jackson.version>
</properties>
</project>

View File

@ -32,6 +32,7 @@
<module>mockito</module>
<module>mockito-simple</module>
<module>mocks</module>
<module>mocks-2</module>
<module>mockserver</module>
<module>parallel-tests-junit</module>
<module>powermock</module>