aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/musichub/business
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/musichub/business')
-rw-r--r--src/test/java/musichub/business/PathValidationTest.java26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/test/java/musichub/business/PathValidationTest.java b/src/test/java/musichub/business/PathValidationTest.java
deleted file mode 100644
index fffbdde..0000000
--- a/src/test/java/musichub/business/PathValidationTest.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package musichub.business;
-
-
-import org.junit.jupiter.api.Test;
-
-import static musichub.business.PathValidation.isPathValid;
-import static org.junit.jupiter.api.Assertions.*;
-
-public class PathValidationTest {
- @Test
- void testIsPathValid() {
- assertTrue(isPathValid("Song/Side_To_Side.wav")); //the right path
- assertFalse(isPathValid("wrong_path/Side_To_Side.wav")); //wrong path
- assertFalse(isPathValid("Song/Side_To_Side.mp3")); //wrong extension
- }
-
- @Test
- void testPathValidationClass() {
- try {
- PathValidation pathValidationClass = new PathValidation();
- } catch (Error ex) {
- assertTrue(ex instanceof AssertionError);
- assertEquals("You just can't instantiate this class.", ex.getMessage());
- }
- }
-}