Skip to content

Commit

Permalink
hamcrest removed
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamBien committed Dec 12, 2018
1 parent 5f9708e commit aad7b06
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-invoker</artifactId>
<version>3.0.1</version>
</dependency>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
Expand Down
22 changes: 22 additions & 0 deletions src/test/java/wad/AppTest.java
Original file line number Diff line number Diff line change
@@ -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));
}

}

0 comments on commit aad7b06

Please sign in to comment.