Extract junit-5-configuration
This commit is contained in:
parent
d6235c73e6
commit
81b323a695
|
@ -0,0 +1,2 @@
|
||||||
|
### Relevant Articles:
|
||||||
|
-
|
|
@ -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>
|
|
@ -31,7 +31,7 @@ public class ReadResourceDirectoryUnitTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void shouldReadResourceAbsolutePathWithPaths() {
|
public void shouldReadResourceAbsolutePathWithPaths() {
|
||||||
Path resourceDirectory = Paths.get("src","test","resources");
|
Path resourceDirectory = Paths.get("src", "test", "resources");
|
||||||
|
|
||||||
String absolutePath = resourceDirectory.toFile().getAbsolutePath();
|
String absolutePath = resourceDirectory.toFile().getAbsolutePath();
|
||||||
|
|
|
@ -32,5 +32,6 @@
|
||||||
<module>test-containers</module>
|
<module>test-containers</module>
|
||||||
<module>testing</module>
|
<module>testing</module>
|
||||||
<module>testng</module>
|
<module>testng</module>
|
||||||
|
<module>junit-5-configuration</module>
|
||||||
</modules>
|
</modules>
|
||||||
</project>
|
</project>
|
||||||
|
|
Loading…
Reference in New Issue