From 81b323a69552d08764f7c865afd57bb99fabfb16 Mon Sep 17 00:00:00 2001 From: Kacper Koza Date: Thu, 25 Apr 2019 09:12:44 +0200 Subject: [PATCH] Extract junit-5-configuration --- .../junit-5-configuration/README.md | 2 + testing-modules/junit-5-configuration/pom.xml | 41 +++++++++++++++++++ .../ReadResourceDirectoryUnitTest.java | 2 +- .../src/test/resources/example_resource.txt | 0 testing-modules/pom.xml | 1 + 5 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 testing-modules/junit-5-configuration/README.md create mode 100644 testing-modules/junit-5-configuration/pom.xml rename testing-modules/{junit-5 => junit-5-configuration}/src/test/java/com/baeldung/resourcedirectory/ReadResourceDirectoryUnitTest.java (93%) rename testing-modules/{junit-5 => junit-5-configuration}/src/test/resources/example_resource.txt (100%) diff --git a/testing-modules/junit-5-configuration/README.md b/testing-modules/junit-5-configuration/README.md new file mode 100644 index 0000000000..c274391766 --- /dev/null +++ b/testing-modules/junit-5-configuration/README.md @@ -0,0 +1,2 @@ +### Relevant Articles: +- diff --git a/testing-modules/junit-5-configuration/pom.xml b/testing-modules/junit-5-configuration/pom.xml new file mode 100644 index 0000000000..aa488ebb8b --- /dev/null +++ b/testing-modules/junit-5-configuration/pom.xml @@ -0,0 +1,41 @@ + + + 4.0.0 + junit-5-configuration + 1.0-SNAPSHOT + junit-5-configuration + Intro to JUnit 5 configuration + + + com.baeldung + parent-modules + 1.0.0-SNAPSHOT + ../../ + + + + + org.junit.jupiter + junit-jupiter-params + ${junit.jupiter.version} + + + + + + + src/test/resources + true + + + + + + 5.3.1 + 1.2.0 + 5.2.0 + + + diff --git a/testing-modules/junit-5/src/test/java/com/baeldung/resourcedirectory/ReadResourceDirectoryUnitTest.java b/testing-modules/junit-5-configuration/src/test/java/com/baeldung/resourcedirectory/ReadResourceDirectoryUnitTest.java similarity index 93% rename from testing-modules/junit-5/src/test/java/com/baeldung/resourcedirectory/ReadResourceDirectoryUnitTest.java rename to testing-modules/junit-5-configuration/src/test/java/com/baeldung/resourcedirectory/ReadResourceDirectoryUnitTest.java index 89a144adfa..5a91cf5e81 100644 --- a/testing-modules/junit-5/src/test/java/com/baeldung/resourcedirectory/ReadResourceDirectoryUnitTest.java +++ b/testing-modules/junit-5-configuration/src/test/java/com/baeldung/resourcedirectory/ReadResourceDirectoryUnitTest.java @@ -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(); diff --git a/testing-modules/junit-5/src/test/resources/example_resource.txt b/testing-modules/junit-5-configuration/src/test/resources/example_resource.txt similarity index 100% rename from testing-modules/junit-5/src/test/resources/example_resource.txt rename to testing-modules/junit-5-configuration/src/test/resources/example_resource.txt diff --git a/testing-modules/pom.xml b/testing-modules/pom.xml index 39047fb756..40ed63bc12 100644 --- a/testing-modules/pom.xml +++ b/testing-modules/pom.xml @@ -32,5 +32,6 @@ test-containers testing testng + junit-5-configuration