diff options
Diffstat (limited to 'target/site/jacoco/musichub.business/AudioBook.java.html')
-rw-r--r-- | target/site/jacoco/musichub.business/AudioBook.java.html | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/target/site/jacoco/musichub.business/AudioBook.java.html b/target/site/jacoco/musichub.business/AudioBook.java.html index 33a7924..d8fc192 100644 --- a/target/site/jacoco/musichub.business/AudioBook.java.html +++ b/target/site/jacoco/musichub.business/AudioBook.java.html @@ -14,10 +14,10 @@ public class AudioBook extends AudioElement { <span class="nc" id="L14"> }</span> public AudioBook(String title, String artist, int lengthInSeconds, String content, String language, String category) { -<span class="nc" id="L17"> super(title, artist, lengthInSeconds, content);</span> -<span class="nc" id="L18"> this.setLanguage(language);</span> -<span class="nc" id="L19"> this.setCategory(category);</span> -<span class="nc" id="L20"> }</span> +<span class="fc" id="L17"> super(title, artist, lengthInSeconds, content);</span> +<span class="fc" id="L18"> this.setLanguage(language);</span> +<span class="fc" id="L19"> this.setCategory(category);</span> +<span class="fc" id="L20"> }</span> public AudioBook(Element xmlElement) { <span class="nc" id="L23"> super(xmlElement);</span> @@ -26,32 +26,32 @@ public class AudioBook extends AudioElement { <span class="nc" id="L26"> }</span> public Language getLanguage() { -<span class="nc" id="L29"> return this.language;</span> +<span class="fc" id="L29"> return this.language;</span> } public void setLanguage(String language) { -<span class="nc bnc" id="L33" title="All 5 branches missed."> switch (language.toLowerCase()) {</span> +<span class="pc bpc" id="L33" title="4 of 5 branches missed."> switch (language.toLowerCase()) {</span> <span class="nc" id="L34"> default -> this.language = Language.ENGLISH;</span> -<span class="nc" id="L35"> case "french" -> this.language = Language.FRENCH;</span> +<span class="fc" id="L35"> case "french" -> this.language = Language.FRENCH;</span> <span class="nc" id="L36"> case "german" -> this.language = Language.GERMAN;</span> <span class="nc" id="L37"> case "spanish" -> this.language = Language.SPANISH;</span> <span class="nc" id="L38"> case "italian" -> this.language = Language.ITALIAN;</span> } -<span class="nc" id="L40"> }</span> +<span class="fc" id="L40"> }</span> public Category getCategory() { -<span class="nc" id="L43"> return this.category;</span> +<span class="fc" id="L43"> return this.category;</span> } public void setCategory(String category) { -<span class="nc bnc" id="L47" title="All 5 branches missed."> switch (category.toLowerCase()) {</span> +<span class="pc bpc" id="L47" title="4 of 5 branches missed."> switch (category.toLowerCase()) {</span> <span class="nc" id="L48"> default -> this.category = Category.YOUTH;</span> -<span class="nc" id="L49"> case "novel" -> this.category = Category.NOVEL;</span> +<span class="fc" id="L49"> case "novel" -> this.category = Category.NOVEL;</span> <span class="nc" id="L50"> case "theater" -> this.category = Category.THEATER;</span> <span class="nc" id="L51"> case "documentary" -> this.category = Category.DOCUMENTARY;</span> <span class="nc" id="L52"> case "speech" -> this.category = Category.SPEECH;</span> } -<span class="nc" id="L54"> }</span> +<span class="fc" id="L54"> }</span> public String toString() { |