This commit is contained in:
Jan-Philipp Luithardt
2025-12-03 12:09:31 +01:00
parent 9f4ff7ff6f
commit 670c3fbbd3
28 changed files with 29 additions and 38 deletions

View File

@@ -14,8 +14,8 @@ public class Task {
<span class="fc" id="L15"> throw new IllegalArgumentException(&quot;Name/Description is null!&quot;);</span>
}
<span class="fc bfc" id="L17" title="All 4 branches covered."> if(name.isEmpty() || description.isEmpty()) {</span>
<span class="fc" id="L18"> throw new IllegalArgumentException(&quot;Name/Description is empty!&quot;);</span>
<span class="fc bfc" id="L17" title="All 2 branches covered."> if(name.isEmpty()) {</span>
<span class="fc" id="L18"> throw new IllegalArgumentException(&quot;Name is empty!&quot;);</span>
}
<span class="fc" id="L21"> this.name = name;</span>
@@ -46,21 +46,18 @@ public class Task {
<span class="fc" id="L47"> throw new IllegalArgumentException(&quot;Description is null!&quot;);</span>
}
<span class="fc bfc" id="L49" title="All 2 branches covered."> if(description.isEmpty()) {</span>
<span class="fc" id="L50"> throw new IllegalArgumentException(&quot;Description is empty!&quot;);</span>
}
<span class="fc" id="L53"> this.description = description;</span>
<span class="fc" id="L54"> }</span>
<span class="fc" id="L50"> this.description = description;</span>
<span class="fc" id="L51"> }</span>
public void setStatus(TaskStatus taskStatus) {
<span class="fc bfc" id="L57" title="All 2 branches covered."> if (taskStatus == null ) {</span>
<span class="fc bfc" id="L54" title="All 2 branches covered."> if (taskStatus == null ) {</span>
<span class="fc" id="L59"> throw new IllegalArgumentException(&quot;TaskStatus is null!&quot;);</span>
<span class="fc" id="L56"> throw new IllegalArgumentException(&quot;TaskStatus is null!&quot;);</span>
}
<span class="fc" id="L62"> this.taskStatus = taskStatus;</span>
<span class="fc" id="L63"> }</span>
<span class="fc" id="L59"> this.taskStatus = taskStatus;</span>
<span class="fc" id="L60"> }</span>
}
</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.13.202504020838</span></div></body></html>