aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorClyhtsuriva <61652557+clyhtsuriva@users.noreply.github.com>2021-06-27 13:45:55 +0000
committerGitHub <noreply@github.com>2021-06-27 13:45:55 +0000
commit51ee4fe5f80e6dc6d9a25c4e95f53c8c122a9434 (patch)
tree9695b8cbd65fa1e914b30597b64c79e484cacdcd /src/test/java
parente13eea333d7af2786dbbbb5ed60cea4593d5ee12 (diff)
parentf5117515ab26658e93d9efc2d99651c332840782 (diff)
Merge pull request #11 from Said-Belhadj/feature/STZ-0010
STZ-0010 : Extension check
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/musichub/util/PathValidationTest.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/test/java/musichub/util/PathValidationTest.java b/src/test/java/musichub/util/PathValidationTest.java
index b0e0c38..f087ac1 100644
--- a/src/test/java/musichub/util/PathValidationTest.java
+++ b/src/test/java/musichub/util/PathValidationTest.java
@@ -19,8 +19,9 @@ 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
+ assertTrue(isPathValid("Song/Side_To_Side.wav")); //right path, right file, right extension
+ assertFalse(isPathValid("wrong_path/Side_To_Side.wav")); //wrong path, right file, right extension
+ assertFalse(isPathValid("Song/Side_To_Side.mp3")); //right path, right file, wrong extension
+ assertFalse(isPathValid("Song/Side_To_Sidewav")); //right path, right file, wrong extension (without a dot)
}
}