aboutsummaryrefslogtreecommitdiff
path: root/target/site/jacoco/musichub.business/AudioElement.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/AudioElement.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/AudioElement.java.html')
-rw-r--r--target/site/jacoco/musichub.business/AudioElement.java.html88
1 files changed, 44 insertions, 44 deletions
diff --git a/target/site/jacoco/musichub.business/AudioElement.java.html b/target/site/jacoco/musichub.business/AudioElement.java.html
index 4401836..7863e1a 100644
--- a/target/site/jacoco/musichub.business/AudioElement.java.html
+++ b/target/site/jacoco/musichub.business/AudioElement.java.html
@@ -21,39 +21,39 @@ public abstract class AudioElement {
protected UUID uuid;
protected String content;
-<span class="nc" id="L24"> public AudioElement(String title, String artist, int lengthInSeconds, String id, String content) {</span>
-<span class="nc" id="L25"> this.title = title;</span>
-<span class="nc" id="L26"> this.artist = artist;</span>
-<span class="nc" id="L27"> this.lengthInSeconds = lengthInSeconds;</span>
-<span class="nc" id="L28"> this.uuid = UUID.fromString(id);</span>
-<span class="nc" id="L29"> this.content = content;</span>
-<span class="nc" id="L30"> }</span>
-
-<span class="nc" id="L32"> public AudioElement(String title, String artist, int lengthInSeconds, String content) {</span>
-<span class="nc" id="L33"> this.title = title;</span>
-<span class="nc" id="L34"> this.artist = artist;</span>
-<span class="nc" id="L35"> this.lengthInSeconds = lengthInSeconds;</span>
-<span class="nc" id="L36"> this.content = content;</span>
-<span class="nc" id="L37"> this.uuid = UUID.randomUUID();</span>
-<span class="nc" id="L38"> }</span>
-
-<span class="nc" id="L40"> public AudioElement(Element xmlElement) {</span>
+<span class="fc" id="L24"> public AudioElement(String title, String artist, int lengthInSeconds, String id, String content) {</span>
+<span class="fc" id="L25"> this.title = title;</span>
+<span class="fc" id="L26"> this.artist = artist;</span>
+<span class="fc" id="L27"> this.lengthInSeconds = lengthInSeconds;</span>
+<span class="fc" id="L28"> this.uuid = UUID.fromString(id);</span>
+<span class="fc" id="L29"> this.content = content;</span>
+<span class="fc" id="L30"> }</span>
+
+<span class="fc" id="L32"> public AudioElement(String title, String artist, int lengthInSeconds, String content) {</span>
+<span class="fc" id="L33"> this.title = title;</span>
+<span class="fc" id="L34"> this.artist = artist;</span>
+<span class="fc" id="L35"> this.lengthInSeconds = lengthInSeconds;</span>
+<span class="fc" id="L36"> this.content = content;</span>
+<span class="fc" id="L37"> this.uuid = UUID.randomUUID();</span>
+<span class="fc" id="L38"> }</span>
+
+<span class="fc" id="L40"> public AudioElement(Element xmlElement) {</span>
{
-<span class="nc" id="L42"> title = xmlElement.getElementsByTagName(&quot;title&quot;).item(0).getTextContent();</span>
-<span class="nc" id="L43"> artist = xmlElement.getElementsByTagName(&quot;artist&quot;).item(0).getTextContent();</span>
-<span class="nc" id="L44"> lengthInSeconds = Integer.parseInt(xmlElement.getElementsByTagName(&quot;length&quot;).item(0).getTextContent());</span>
-<span class="nc" id="L45"> content = xmlElement.getElementsByTagName(&quot;content&quot;).item(0).getTextContent();</span>
-<span class="nc" id="L46"> String uuid = null;</span>
+<span class="fc" id="L42"> title = xmlElement.getElementsByTagName(&quot;title&quot;).item(0).getTextContent();</span>
+<span class="fc" id="L43"> artist = xmlElement.getElementsByTagName(&quot;artist&quot;).item(0).getTextContent();</span>
+<span class="fc" id="L44"> lengthInSeconds = Integer.parseInt(xmlElement.getElementsByTagName(&quot;length&quot;).item(0).getTextContent());</span>
+<span class="fc" id="L45"> content = xmlElement.getElementsByTagName(&quot;content&quot;).item(0).getTextContent();</span>
+<span class="fc" id="L46"> String uuid = null;</span>
try {
-<span class="nc" id="L48"> uuid = xmlElement.getElementsByTagName(&quot;UUID&quot;).item(0).getTextContent();</span>
+<span class="fc" id="L48"> uuid = xmlElement.getElementsByTagName(&quot;UUID&quot;).item(0).getTextContent();</span>
<span class="nc" id="L49"> } catch (Exception ex) {</span>
<span class="nc" id="L50"> System.out.println(&quot;Empty element UUID, will create a new one&quot;);</span>
-<span class="nc" id="L51"> }</span>
-<span class="nc bnc" id="L52" title="All 4 branches missed."> if ((uuid == null) || (uuid.isEmpty()))</span>
+<span class="fc" id="L51"> }</span>
+<span class="pc bpc" id="L52" title="2 of 4 branches missed."> if ((uuid == null) || (uuid.isEmpty()))</span>
<span class="nc" id="L53"> this.uuid = UUID.randomUUID();</span>
-<span class="nc" id="L54"> else this.uuid = UUID.fromString(uuid);</span>
+<span class="fc" id="L54"> else this.uuid = UUID.fromString(uuid);</span>
}
-<span class="nc" id="L56"> }</span>
+<span class="fc" id="L56"> }</span>
public UUID getUUID() {
<span class="nc" id="L59"> return this.uuid;</span>
@@ -68,31 +68,31 @@ public abstract class AudioElement {
}
public String toString() {
-<span class="nc" id="L71"> return &quot;Title = &quot; + this.title + &quot;, Artist = &quot; + this.artist + &quot;, Length = &quot; + this.lengthInSeconds + &quot;, Content = &quot; + this.content;</span>
+<span class="fc" id="L71"> return &quot;Title = &quot; + this.title + &quot;, Artist = &quot; + this.artist + &quot;, Length = &quot; + this.lengthInSeconds + &quot;, Content = &quot; + this.content;</span>
}
public void createXMLElement(Document document, Element parentElement) {
-<span class="nc" id="L75"> Element nameElement = document.createElement(&quot;title&quot;);</span>
-<span class="nc" id="L76"> nameElement.appendChild(document.createTextNode(title));</span>
-<span class="nc" id="L77"> parentElement.appendChild(nameElement);</span>
+<span class="fc" id="L75"> Element nameElement = document.createElement(&quot;title&quot;);</span>
+<span class="fc" id="L76"> nameElement.appendChild(document.createTextNode(title));</span>
+<span class="fc" id="L77"> parentElement.appendChild(nameElement);</span>
-<span class="nc" id="L79"> Element artistElement = document.createElement(&quot;artist&quot;);</span>
-<span class="nc" id="L80"> artistElement.appendChild(document.createTextNode(artist));</span>
-<span class="nc" id="L81"> parentElement.appendChild(artistElement);</span>
+<span class="fc" id="L79"> Element artistElement = document.createElement(&quot;artist&quot;);</span>
+<span class="fc" id="L80"> artistElement.appendChild(document.createTextNode(artist));</span>
+<span class="fc" id="L81"> parentElement.appendChild(artistElement);</span>
-<span class="nc" id="L83"> Element lengthElement = document.createElement(&quot;length&quot;);</span>
-<span class="nc" id="L84"> lengthElement.appendChild(document.createTextNode(Integer.valueOf(lengthInSeconds).toString()));</span>
-<span class="nc" id="L85"> parentElement.appendChild(lengthElement);</span>
+<span class="fc" id="L83"> Element lengthElement = document.createElement(&quot;length&quot;);</span>
+<span class="fc" id="L84"> lengthElement.appendChild(document.createTextNode(Integer.valueOf(lengthInSeconds).toString()));</span>
+<span class="fc" id="L85"> parentElement.appendChild(lengthElement);</span>
-<span class="nc" id="L87"> Element UUIDElement = document.createElement(&quot;UUID&quot;);</span>
-<span class="nc" id="L88"> UUIDElement.appendChild(document.createTextNode(uuid.toString()));</span>
-<span class="nc" id="L89"> parentElement.appendChild(UUIDElement);</span>
+<span class="fc" id="L87"> Element UUIDElement = document.createElement(&quot;UUID&quot;);</span>
+<span class="fc" id="L88"> UUIDElement.appendChild(document.createTextNode(uuid.toString()));</span>
+<span class="fc" id="L89"> parentElement.appendChild(UUIDElement);</span>
-<span class="nc" id="L91"> Element contentElement = document.createElement(&quot;content&quot;);</span>
-<span class="nc" id="L92"> contentElement.appendChild(document.createTextNode(content));</span>
-<span class="nc" id="L93"> parentElement.appendChild(contentElement);</span>
+<span class="fc" id="L91"> Element contentElement = document.createElement(&quot;content&quot;);</span>
+<span class="fc" id="L92"> contentElement.appendChild(document.createTextNode(content));</span>
+<span class="fc" id="L93"> parentElement.appendChild(contentElement);</span>
-<span class="nc" id="L95"> }</span>
+<span class="fc" id="L95"> }</span>
public void manageAudioElement() throws UnsupportedAudioFileException, IOException, LineUnavailableException {