aboutsummaryrefslogtreecommitdiff
path: root/target/site/jacoco/musichub.main
diff options
context:
space:
mode:
authorClyhtsuriva <aimeric@adjutor.xyz>2021-06-27 13:24:40 +0200
committerClyhtsuriva <aimeric@adjutor.xyz>2021-06-27 13:24:40 +0200
commitf5117515ab26658e93d9efc2d99651c332840782 (patch)
tree9695b8cbd65fa1e914b30597b64c79e484cacdcd /target/site/jacoco/musichub.main
parente13eea333d7af2786dbbbb5ed60cea4593d5ee12 (diff)
Added an extension check for songs and covered it with a test.
Diffstat (limited to 'target/site/jacoco/musichub.main')
-rw-r--r--target/site/jacoco/musichub.main/Main.java.html2
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(&quot;Song content: &quot;);</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 = &quot;The music file was not found with the path you've provided.&quot;;</span>
+<span class="nc" id="L97"> String logMsg = &quot;The music file was not found with the path you've provided or the extension is not .wav&quot;;</span>
<span class="nc" id="L98"> LogHandler.write(logMsg, &quot;WARNING&quot;); //write a line in the log file</span>
<span class="nc" id="L99"> System.out.println(logMsg + &quot;\nType h for available commands&quot;);</span>
<span class="nc" id="L100"> choice = scan.nextLine();</span>