Extract junit-5-configuration

This commit is contained in:
Kacper Koza 2019-04-25 09:12:44 +02:00
parent d6235c73e6
commit 81b323a695
5 changed files with 45 additions and 1 deletions

View File

@ -0,0 +1,2 @@
### Relevant Articles:
-

View File

@ -0,0 +1,41 @@
<?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>junit-5-configuration</artifactId>
<version>1.0-SNAPSHOT</version>
<name>junit-5-configuration</name>
<description>Intro to JUnit 5 configuration</description>
<parent>
<groupId>com.baeldung</groupId>
<artifactId>parent-modules</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../../</relativePath>
</parent>
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<version>${junit.jupiter.version}</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/test/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
<properties>
<junit.jupiter.version>5.3.1</junit.jupiter.version>
<junit.platform.version>1.2.0</junit.platform.version>
<junit.vintage.version>5.2.0</junit.vintage.version>
</properties>
</project>

View File

@ -31,7 +31,7 @@ public class ReadResourceDirectoryUnitTest {
@Test
public void shouldReadResourceAbsolutePathWithPaths() {
Path resourceDirectory = Paths.get("src","test","resources");
Path resourceDirectory = Paths.get("src", "test", "resources");
String absolutePath = resourceDirectory.toFile().getAbsolutePath();

View File

@ -32,5 +32,6 @@
<module>test-containers</module>
<module>testing</module>
<module>testng</module>
<module>junit-5-configuration</module>
</modules>
</project>