aboutsummaryrefslogtreecommitdiff
path: root/target/site/jacoco/musichub.business/Song.java.html
diff options
context:
space:
mode:
authorClyhtsuriva <61652557+clyhtsuriva@users.noreply.github.com>2021-06-27 11:02:03 +0000
committerGitHub <noreply@github.com>2021-06-27 11:02:03 +0000
commite13eea333d7af2786dbbbb5ed60cea4593d5ee12 (patch)
treed87270f2e9cee0586a3c7b49033cefaca0c107d0 /target/site/jacoco/musichub.business/Song.java.html
parent18359e9e2892a332f283476bc3ae887308f51cec (diff)
parent9a234079437a1532072ed5f0bce0203922719b0f (diff)
Merge pull request #10 from Said-Belhadj/feature/STZ-0012
Feature/stz 0012
Diffstat (limited to 'target/site/jacoco/musichub.business/Song.java.html')
-rw-r--r--target/site/jacoco/musichub.business/Song.java.html52
1 files changed, 26 insertions, 26 deletions
diff --git a/target/site/jacoco/musichub.business/Song.java.html b/target/site/jacoco/musichub.business/Song.java.html
index 4f7f01d..f78cf39 100644
--- a/target/site/jacoco/musichub.business/Song.java.html
+++ b/target/site/jacoco/musichub.business/Song.java.html
@@ -8,51 +8,51 @@ public class Song extends AudioElement {
private Genre genre;
public Song(String title, String artist, int length, String uid, String content, String genre) {
-<span class="nc" id="L11"> super(title, artist, length, uid, content);</span>
-<span class="nc" id="L12"> this.setGenre(genre);</span>
-<span class="nc" id="L13"> }</span>
+<span class="fc" id="L11"> super(title, artist, length, uid, content);</span>
+<span class="fc" id="L12"> this.setGenre(genre);</span>
+<span class="fc" id="L13"> }</span>
public Song(String title, String artist, int length, String content, String genre) {
-<span class="nc" id="L16"> super(title, artist, length, content);</span>
-<span class="nc" id="L17"> this.setGenre(genre);</span>
-<span class="nc" id="L18"> }</span>
+<span class="fc" id="L16"> super(title, artist, length, content);</span>
+<span class="fc" id="L17"> this.setGenre(genre);</span>
+<span class="fc" id="L18"> }</span>
public Song(Element xmlElement) {
-<span class="nc" id="L21"> super(xmlElement);</span>
-<span class="nc" id="L22"> this.setGenre(xmlElement.getElementsByTagName(&quot;genre&quot;).item(0).getTextContent());</span>
-<span class="nc" id="L23"> }</span>
+<span class="fc" id="L21"> super(xmlElement);</span>
+<span class="fc" id="L22"> this.setGenre(xmlElement.getElementsByTagName(&quot;genre&quot;).item(0).getTextContent());</span>
+<span class="fc" id="L23"> }</span>
public String getGenre() {
-<span class="nc" id="L26"> return genre.getGenre();</span>
+<span class="fc" id="L26"> return genre.getGenre();</span>
}
public void setGenre(String genre) {
-<span class="nc bnc" id="L30" title="All 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="nc" id="L34"> case &quot;rock&quot; -&gt; this.genre = Genre.ROCK;</span>
-<span class="nc" 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 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="fc" id="L36"> case &quot;rap&quot; -&gt; this.genre = Genre.RAP;</span>
}
-<span class="nc" id="L38"> }</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>
}