From aad7b0609d4ef79b51bdd74085782d95b8919a3a Mon Sep 17 00:00:00 2001 From: Adam Bien Date: Wed, 12 Dec 2018 05:44:20 +0100 Subject: [PATCH] hamcrest removed --- pom.xml | 8 +++++++- src/test/java/wad/AppTest.java | 22 ++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 src/test/java/wad/AppTest.java diff --git a/pom.xml b/pom.xml index c5aa681..6977ebc 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,13 @@ org.apache.maven.shared maven-invoker 3.0.1 - + + + junit + junit + 4.12 + test + diff --git a/src/test/java/wad/AppTest.java b/src/test/java/wad/AppTest.java new file mode 100644 index 0000000..0904c82 --- /dev/null +++ b/src/test/java/wad/AppTest.java @@ -0,0 +1,22 @@ +package wad; + +import java.nio.file.Path; +import java.nio.file.Paths; +import static org.hamcrest.CoreMatchers.is; +import static org.junit.Assert.assertThat; +import org.junit.Test; + +/** + * + * @author airhacks.com + */ +public class AppTest { + + @Test + public void currentFolderFolderName() { + String expected = "wad"; + Path currentPath = Paths.get("").toAbsolutePath().getFileName(); + assertThat(currentPath.toString(), is(expected)); + } + +}