diff options
author | Clyhtsuriva <aimeric@adjutor.xyz> | 2021-06-27 13:24:40 +0200 |
---|---|---|
committer | Clyhtsuriva <aimeric@adjutor.xyz> | 2021-06-27 13:24:40 +0200 |
commit | f5117515ab26658e93d9efc2d99651c332840782 (patch) | |
tree | 9695b8cbd65fa1e914b30597b64c79e484cacdcd /target/site/jacoco/musichub.main/Main.java.html | |
parent | e13eea333d7af2786dbbbb5ed60cea4593d5ee12 (diff) |
Added an extension check for songs and covered it with a test.
Diffstat (limited to 'target/site/jacoco/musichub.main/Main.java.html')
-rw-r--r-- | target/site/jacoco/musichub.main/Main.java.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/site/jacoco/musichub.main/Main.java.html b/target/site/jacoco/musichub.main/Main.java.html index 7ec6a41..d86f303 100644 --- a/target/site/jacoco/musichub.main/Main.java.html +++ b/target/site/jacoco/musichub.main/Main.java.html @@ -94,7 +94,7 @@ import static musichub.util.PathValidation.isPathValid; <span class="nc" id="L94"> System.out.println("Song content: ");</span> <span class="nc" id="L95"> String content = scan.nextLine();</span> <span class="nc bnc" id="L96" title="All 2 branches missed."> if (!isPathValid(content)) {</span> -<span class="nc" id="L97"> String logMsg = "The music file was not found with the path you've provided.";</span> +<span class="nc" id="L97"> String logMsg = "The music file was not found with the path you've provided or the extension is not .wav";</span> <span class="nc" id="L98"> LogHandler.write(logMsg, "WARNING"); //write a line in the log file</span> <span class="nc" id="L99"> System.out.println(logMsg + "\nType h for available commands");</span> <span class="nc" id="L100"> choice = scan.nextLine();</span> |