Files
GSE2TaskTracker/build/reports/tests/test/classes/project.BadCaseTaskTest.html
Jan-Philipp Luithardt 6c5dfa3170
All checks were successful
Gradle CI with Jacoco and Problems Report / build (push) Successful in 22m7s
fix actions
2025-12-07 14:43:12 +01:00

225 lines
8.4 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="x-ua-compatible" content="IE=edge"/>
<title>Test results - BadCaseTaskTest</title>
<link href="../css/base-style.css" rel="stylesheet" type="text/css"/>
<link href="../css/style.css" rel="stylesheet" type="text/css"/>
<script src="../js/report.js" type="text/javascript"></script>
</head>
<body>
<div id="content">
<h1>BadCaseTaskTest</h1>
<div class="breadcrumbs">
<a href="../index.html">all</a> &gt;
<a href="../packages/project.html">project</a> &gt; BadCaseTaskTest</div>
<div id="summary">
<table>
<tr>
<td>
<div class="summaryGroup">
<table>
<tr>
<td>
<div class="infoBox" id="tests">
<div class="counter">7</div>
<p>tests</p>
</div>
</td>
<td>
<div class="infoBox" id="failures">
<div class="counter">6</div>
<p>failures</p>
</div>
</td>
<td>
<div class="infoBox" id="ignored">
<div class="counter">0</div>
<p>ignored</p>
</div>
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">30.989s</div>
<p>duration</p>
</div>
</td>
</tr>
</table>
</div>
</td>
<td>
<div class="infoBox failures" id="successRate">
<div class="percent">14%</div>
<p>successful</p>
</div>
</td>
</tr>
</table>
</div>
<div class="tab-container">
<ul class="tabLinks">
<li>
<a href="#">Failed tests</a>
</li>
<li>
<a href="#">Tests</a>
</li>
</ul>
<div class="tab">
<h2>Failed tests</h2>
<div class="test">
<a name="assertExceptionOnCallingANonextistingTask()"></a>
<h3 class="failures">Assert an IllegalArgumentException when calling a non-Existing Task</h3>
<span class="code">
<pre>hhn.temp.project.expections.SQLNoConectionException: Cant connect to the database (Could not create connection to database server. Attempted reconnect 3 times. Giving up.)
at app//hhn.temp.project.provider.MySql.connect(MySql.java:35)
at app//hhn.temp.project.TaskManager.&lt;init&gt;(TaskManager.java:19)
at app//project.BadCaseTaskTest.assertExceptionOnCallingANonextistingTask(BadCaseTaskTest.java:85)
at java.base@17.0.16/java.lang.reflect.Method.invoke(Method.java:569)
at java.base@17.0.16/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base@17.0.16/java.util.ArrayList.forEach(ArrayList.java:1511)
</pre>
</span>
</div>
<div class="test">
<a name="assertExceptionOnCreateNewTask()"></a>
<h3 class="failures">Assert an IllegalArgumentException when you create a new Task with no or wrong Name, Description</h3>
<span class="code">
<pre>hhn.temp.project.expections.SQLNoConectionException: Cant connect to the database (Could not create connection to database server. Attempted reconnect 3 times. Giving up.)
at app//hhn.temp.project.provider.MySql.connect(MySql.java:35)
at app//hhn.temp.project.TaskManager.&lt;init&gt;(TaskManager.java:19)
at app//project.BadCaseTaskTest.assertExceptionOnCreateNewTask(BadCaseTaskTest.java:41)
at java.base@17.0.16/java.lang.reflect.Method.invoke(Method.java:569)
at java.base@17.0.16/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base@17.0.16/java.util.ArrayList.forEach(ArrayList.java:1511)
</pre>
</span>
</div>
<div class="test">
<a name="assertExceptionOnCreateNewTaskWithExitsName()"></a>
<h3 class="failures">Assert an IllegalArgumentException when you create a new Task with the same Name of a exits Task</h3>
<span class="code">
<pre>hhn.temp.project.expections.SQLNoConectionException: Cant connect to the database (Could not create connection to database server. Attempted reconnect 3 times. Giving up.)
at app//hhn.temp.project.provider.MySql.connect(MySql.java:35)
at app//hhn.temp.project.TaskManager.&lt;init&gt;(TaskManager.java:19)
at app//project.BadCaseTaskTest.assertExceptionOnCreateNewTaskWithExitsName(BadCaseTaskTest.java:56)
at java.base@17.0.16/java.lang.reflect.Method.invoke(Method.java:569)
at java.base@17.0.16/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base@17.0.16/java.util.ArrayList.forEach(ArrayList.java:1511)
</pre>
</span>
</div>
<div class="test">
<a name="assertExceptionOnDeletingTask()"></a>
<h3 class="failures">Assert an IllegalArgumentException when delete a existing Task with wrong arguments</h3>
<span class="code">
<pre>hhn.temp.project.expections.SQLNoConectionException: Cant connect to the database (Could not create connection to database server. Attempted reconnect 3 times. Giving up.)
at app//hhn.temp.project.provider.MySql.connect(MySql.java:35)
at app//hhn.temp.project.TaskManager.&lt;init&gt;(TaskManager.java:19)
at app//project.BadCaseTaskTest.assertExceptionOnDeletingTask(BadCaseTaskTest.java:101)
at java.base@17.0.16/java.lang.reflect.Method.invoke(Method.java:569)
at java.base@17.0.16/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base@17.0.16/java.util.ArrayList.forEach(ArrayList.java:1511)
</pre>
</span>
</div>
<div class="test">
<a name="assertExceptionOnEditATask()"></a>
<h3 class="failures">Assert an IllegalArgumentException when you edit a exits Task</h3>
<span class="code">
<pre>hhn.temp.project.expections.SQLNoConectionException: Cant connect to the database (Could not create connection to database server. Attempted reconnect 3 times. Giving up.)
at app//hhn.temp.project.provider.MySql.connect(MySql.java:35)
at app//hhn.temp.project.TaskManager.&lt;init&gt;(TaskManager.java:19)
at app//project.BadCaseTaskTest.assertExceptionOnEditATask(BadCaseTaskTest.java:69)
at java.base@17.0.16/java.lang.reflect.Method.invoke(Method.java:569)
at java.base@17.0.16/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base@17.0.16/java.util.ArrayList.forEach(ArrayList.java:1511)
</pre>
</span>
</div>
<div class="test">
<a name="assertExeptionBySetAndGetAuthorOfATask()"></a>
<h3 class="failures">Get a Exeption by setWorker and getWorker</h3>
<span class="code">
<pre>hhn.temp.project.expections.SQLNoConectionException: Cant connect to the database (Could not create connection to database server. Attempted reconnect 3 times. Giving up.)
at app//hhn.temp.project.provider.MySql.connect(MySql.java:35)
at app//hhn.temp.project.TaskManager.&lt;init&gt;(TaskManager.java:19)
at app//project.BadCaseTaskTest.assertExeptionBySetAndGetAuthorOfATask(BadCaseTaskTest.java:118)
at java.base@17.0.16/java.lang.reflect.Method.invoke(Method.java:569)
at java.base@17.0.16/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base@17.0.16/java.util.ArrayList.forEach(ArrayList.java:1511)
</pre>
</span>
</div>
</div>
<div class="tab">
<h2>Tests</h2>
<table>
<thead>
<tr>
<th>Test</th>
<th>Method name</th>
<th>Duration</th>
<th>Result</th>
</tr>
</thead>
<tr>
<td class="success">Create a new TaskManager and test Connecton</td>
<td class="success">assertCreateNewTaskManager()</td>
<td class="success">4.103s</td>
<td class="success">passed</td>
</tr>
<tr>
<td class="failures">Assert an IllegalArgumentException when calling a non-Existing Task</td>
<td class="failures">assertExceptionOnCallingANonextistingTask()</td>
<td class="failures">4.381s</td>
<td class="failures">failed</td>
</tr>
<tr>
<td class="failures">Assert an IllegalArgumentException when you create a new Task with no or wrong Name, Description</td>
<td class="failures">assertExceptionOnCreateNewTask()</td>
<td class="failures">4.102s</td>
<td class="failures">failed</td>
</tr>
<tr>
<td class="failures">Assert an IllegalArgumentException when you create a new Task with the same Name of a exits Task</td>
<td class="failures">assertExceptionOnCreateNewTaskWithExitsName()</td>
<td class="failures">4.368s</td>
<td class="failures">failed</td>
</tr>
<tr>
<td class="failures">Assert an IllegalArgumentException when delete a existing Task with wrong arguments</td>
<td class="failures">assertExceptionOnDeletingTask()</td>
<td class="failures">4.204s</td>
<td class="failures">failed</td>
</tr>
<tr>
<td class="failures">Assert an IllegalArgumentException when you edit a exits Task</td>
<td class="failures">assertExceptionOnEditATask()</td>
<td class="failures">5.676s</td>
<td class="failures">failed</td>
</tr>
<tr>
<td class="failures">Get a Exeption by setWorker and getWorker</td>
<td class="failures">assertExeptionBySetAndGetAuthorOfATask()</td>
<td class="failures">4.155s</td>
<td class="failures">failed</td>
</tr>
</table>
</div>
</div>
<div id="footer">
<p>
<div>
<label class="hidden" id="label-for-line-wrapping-toggle" for="line-wrapping-toggle">Wrap lines
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="https://www.gradle.org">Gradle 8.14</a> at 07.12.2025, 14:40:13</p>
</div>
</div>
</body>
</html>