aboutsummaryrefslogtreecommitdiff
path: root/target/site/jacoco/musichub.business/Song.java.html
diff options
context:
space:
mode:
authorClyhtsuriva <aimeric@adjutor.xyz>2021-06-27 12:12:56 +0200
committerClyhtsuriva <aimeric@adjutor.xyz>2021-06-27 12:12:56 +0200
commitf9de1516a05f91e5632500a3b0a898938d6c795e (patch)
tree3658a35977b2019da078f650bafc56820d41e6eb /target/site/jacoco/musichub.business/Song.java.html
parenta9f46e2164f0d9ce416f34ebcb68d532de98cdb2 (diff)
Song class fully covered.
Diffstat (limited to 'target/site/jacoco/musichub.business/Song.java.html')
-rw-r--r--target/site/jacoco/musichub.business/Song.java.html26
1 files changed, 13 insertions, 13 deletions
diff --git a/target/site/jacoco/musichub.business/Song.java.html b/target/site/jacoco/musichub.business/Song.java.html
index 86ea1bf..f78cf39 100644
--- a/target/site/jacoco/musichub.business/Song.java.html
+++ b/target/site/jacoco/musichub.business/Song.java.html
@@ -27,32 +27,32 @@ public class Song extends AudioElement {
}
public void setGenre(String genre) {
-<span class="pc bpc" id="L30" title="4 of 6 branches missed."> switch (genre.toLowerCase()) {</span>
-<span class="nc" id="L31"> default -&gt; this.genre = Genre.JAZZ;</span>
-<span class="nc" id="L32"> case &quot;classic&quot; -&gt; this.genre = Genre.CLASSIC;</span>
-<span class="nc" id="L33"> case &quot;hiphop&quot; -&gt; this.genre = Genre.HIPHOP;</span>
+<span class="fc bfc" id="L30" title="All 6 branches covered."> switch (genre.toLowerCase()) {</span>
+<span class="fc" id="L31"> default -&gt; this.genre = Genre.JAZZ;</span>
+<span class="fc" id="L32"> case &quot;classic&quot; -&gt; this.genre = Genre.CLASSIC;</span>
+<span class="fc" id="L33"> case &quot;hiphop&quot; -&gt; this.genre = Genre.HIPHOP;</span>
<span class="fc" id="L34"> case &quot;rock&quot; -&gt; this.genre = Genre.ROCK;</span>
<span class="fc" id="L35"> case &quot;pop&quot; -&gt; this.genre = Genre.POP;</span>
-<span class="nc" id="L36"> case &quot;rap&quot; -&gt; this.genre = Genre.RAP;</span>
+<span class="fc" id="L36"> case &quot;rap&quot; -&gt; this.genre = Genre.RAP;</span>
}
<span class="fc" id="L38"> }</span>
public String toString() {
-<span class="nc" id="L41"> return super.toString() + &quot;, Genre = &quot; + getGenre() + &quot;\n&quot;;</span>
+<span class="fc" id="L41"> return super.toString() + &quot;, Genre = &quot; + getGenre() + &quot;\n&quot;;</span>
}
public void createXMLElement(Document document, Element parentElement) {
// song element
-<span class="nc" id="L46"> Element song = document.createElement(&quot;song&quot;);</span>
+<span class="fc" id="L46"> Element song = document.createElement(&quot;song&quot;);</span>
-<span class="nc" id="L48"> super.createXMLElement(document, song);</span>
+<span class="fc" id="L48"> super.createXMLElement(document, song);</span>
-<span class="nc" id="L50"> Element genreElement = document.createElement(&quot;genre&quot;);</span>
-<span class="nc" id="L51"> genreElement.appendChild(document.createTextNode(genre.getGenre()));</span>
-<span class="nc" id="L52"> song.appendChild(genreElement);</span>
+<span class="fc" id="L50"> Element genreElement = document.createElement(&quot;genre&quot;);</span>
+<span class="fc" id="L51"> genreElement.appendChild(document.createTextNode(genre.getGenre()));</span>
+<span class="fc" id="L52"> song.appendChild(genreElement);</span>
-<span class="nc" id="L54"> parentElement.appendChild(song);</span>
-<span class="nc" id="L55"> }</span>
+<span class="fc" id="L54"> parentElement.appendChild(song);</span>
+<span class="fc" id="L55"> }</span>
}