upload
This commit is contained in:
@@ -14,8 +14,8 @@ public class Task {
|
||||
|
||||
<span class="fc" id="L15"> throw new IllegalArgumentException("Name/Description is null!");</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("Name/Description is empty!");</span>
|
||||
<span class="fc bfc" id="L17" title="All 2 branches covered."> if(name.isEmpty()) {</span>
|
||||
<span class="fc" id="L18"> throw new IllegalArgumentException("Name is empty!");</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("Description is null!");</span>
|
||||
}
|
||||
<span class="fc bfc" id="L49" title="All 2 branches covered."> if(description.isEmpty()) {</span>
|
||||
<span class="fc" id="L50"> throw new IllegalArgumentException("Description is empty!");</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("TaskStatus is null!");</span>
|
||||
<span class="fc" id="L56"> throw new IllegalArgumentException("TaskStatus is null!");</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>
|
||||
Reference in New Issue
Block a user