Quick change to the access Modifiers for fields in Worker,Task and Assignmentmanager, refactored tests to use getWorkerMap
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -41,7 +41,7 @@
|
||||
</td>
|
||||
<td>
|
||||
<div class="infoBox" id="duration">
|
||||
<div class="counter">0.096s</div>
|
||||
<div class="counter">0.021s</div>
|
||||
<p>duration</p>
|
||||
</div>
|
||||
</td>
|
||||
@@ -81,25 +81,25 @@
|
||||
<tr>
|
||||
<td class="success">Assert Add Task is programmed defensively</td>
|
||||
<td class="success">assertAddTaskOnlyAcceptsValidParameters()</td>
|
||||
<td class="success">0.007s</td>
|
||||
<td class="success">0.002s</td>
|
||||
<td class="success">passed</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="success">Assert only existing tasks can be edited</td>
|
||||
<td class="success">assertEditOnlyExistingTasks()</td>
|
||||
<td class="success">0.003s</td>
|
||||
<td class="success">0.004s</td>
|
||||
<td class="success">passed</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="success">Assert non-existent commands are recognized as such</td>
|
||||
<td class="success">assertInvalidCommandsDontCrash()</td>
|
||||
<td class="success">0.015s</td>
|
||||
<td class="success">0.001s</td>
|
||||
<td class="success">passed</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="success">Assert List isn't empty after adding a task</td>
|
||||
<td class="success">assertListNowEmptyAfterAdd()</td>
|
||||
<td class="success">0.045s</td>
|
||||
<td class="success">0.004s</td>
|
||||
<td class="success">passed</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -111,13 +111,13 @@
|
||||
<tr>
|
||||
<td class="success">Assert that Remove Task is programmed defensively</td>
|
||||
<td class="success">assertRemoveTaskOnlyAcceptsValidParameters()</td>
|
||||
<td class="success">0.014s</td>
|
||||
<td class="success">0.002s</td>
|
||||
<td class="success">passed</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="success">Assert that removing a non-existent worker throws an Exception</td>
|
||||
<td class="success">assertRemovingNonExistentWorkerFails()</td>
|
||||
<td class="success">0.006s</td>
|
||||
<td class="success">0.002s</td>
|
||||
<td class="success">passed</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -143,7 +143,7 @@
|
||||
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
|
||||
</label>
|
||||
</div>Generated by
|
||||
<a href="https://www.gradle.org">Gradle 8.14</a> at 04.01.2026, 16:08:46</p>
|
||||
<a href="https://www.gradle.org">Gradle 8.14</a> at 04.01.2026, 16:32:20</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
</td>
|
||||
<td>
|
||||
<div class="infoBox" id="duration">
|
||||
<div class="counter">0.083s</div>
|
||||
<div class="counter">0.051s</div>
|
||||
<p>duration</p>
|
||||
</div>
|
||||
</td>
|
||||
@@ -121,49 +121,49 @@
|
||||
<tr>
|
||||
<td class="success">Check that every required surface command actually works</td>
|
||||
<td class="success">assertCommandsAreRecognized()</td>
|
||||
<td class="success">0.012s</td>
|
||||
<td class="success">0.004s</td>
|
||||
<td class="success">passed</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="success">Assert deleted Tasks no longer show up in the List</td>
|
||||
<td class="success">assertDeletedTasksDisappear()</td>
|
||||
<td class="success">0.003s</td>
|
||||
<td class="success">0.001s</td>
|
||||
<td class="success">passed</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="failures">Check that editing is possible through UI</td>
|
||||
<td class="failures">assertEditingTasksIsPossibleThroughUi()</td>
|
||||
<td class="failures">0.026s</td>
|
||||
<td class="failures">0.008s</td>
|
||||
<td class="failures">failed</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="success">Assert existing Tasks can be edited</td>
|
||||
<td class="success">assertExistingTasksCanBeEdited()</td>
|
||||
<td class="success">0.001s</td>
|
||||
<td class="success">0.003s</td>
|
||||
<td class="success">passed</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="success">Check that every task command works</td>
|
||||
<td class="success">assertFinishingTasksIsPossibleThroughUi()</td>
|
||||
<td class="success">0.006s</td>
|
||||
<td class="success">0.005s</td>
|
||||
<td class="success">passed</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="success">Check Getters</td>
|
||||
<td class="success">assertGettersWorkCorrectly()</td>
|
||||
<td class="success">0.007s</td>
|
||||
<td class="success">0.014s</td>
|
||||
<td class="success">passed</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="failures">Assert that removing a worker removes the worker from the worker list</td>
|
||||
<td class="failures">assertRemoveWorkerActuallyRemoves()</td>
|
||||
<td class="failures">0.003s</td>
|
||||
<td class="failures">0.005s</td>
|
||||
<td class="failures">failed</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="success">Assert that removing Workers is possible through the UI</td>
|
||||
<td class="success">assertRemovingWorkersIsPossibleThroughUI()</td>
|
||||
<td class="success">0.005s</td>
|
||||
<td class="success">0.002s</td>
|
||||
<td class="success">passed</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -175,25 +175,25 @@
|
||||
<tr>
|
||||
<td class="success">Assert that Task State is actually changed when submitted as finished</td>
|
||||
<td class="success">assertTaskStateChanges()</td>
|
||||
<td class="success">0.011s</td>
|
||||
<td class="success">0.004s</td>
|
||||
<td class="success">passed</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="success">Assert that added Tasks are added to the List</td>
|
||||
<td class="success">assertTasksShowInList()</td>
|
||||
<td class="success">0.002s</td>
|
||||
<td class="success">0.001s</td>
|
||||
<td class="success">passed</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="success">Assert that a Worker can add a Task</td>
|
||||
<td class="success">assertWorkerCanAddTask()</td>
|
||||
<td class="success">0.003s</td>
|
||||
<td class="success">0.001s</td>
|
||||
<td class="success">passed</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="success">Assert that Worker can remove Task</td>
|
||||
<td class="success">assertWorkerCanRemoveOwnTask()</td>
|
||||
<td class="success">0.002s</td>
|
||||
<td class="success">0.001s</td>
|
||||
<td class="success">passed</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -244,7 +244,7 @@ Unknown command. Type 'help' for available commands.
|
||||
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
|
||||
</label>
|
||||
</div>Generated by
|
||||
<a href="https://www.gradle.org">Gradle 8.14</a> at 04.01.2026, 16:08:46</p>
|
||||
<a href="https://www.gradle.org">Gradle 8.14</a> at 04.01.2026, 16:32:20</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
</td>
|
||||
<td>
|
||||
<div class="infoBox" id="duration">
|
||||
<div class="counter">0.911s</div>
|
||||
<div class="counter">1.810s</div>
|
||||
<p>duration</p>
|
||||
</div>
|
||||
</td>
|
||||
@@ -113,7 +113,7 @@
|
||||
<td>25</td>
|
||||
<td>5</td>
|
||||
<td>0</td>
|
||||
<td>0.911s</td>
|
||||
<td>1.810s</td>
|
||||
<td class="failures">80%</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -140,7 +140,7 @@
|
||||
<td>8</td>
|
||||
<td>0</td>
|
||||
<td>0</td>
|
||||
<td>0.096s</td>
|
||||
<td>0.021s</td>
|
||||
<td class="success">100%</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -150,7 +150,7 @@
|
||||
<td>1</td>
|
||||
<td>0</td>
|
||||
<td>0</td>
|
||||
<td>0.037s</td>
|
||||
<td>0.027s</td>
|
||||
<td class="success">100%</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -160,7 +160,7 @@
|
||||
<td>3</td>
|
||||
<td>3</td>
|
||||
<td>0</td>
|
||||
<td>0.695s</td>
|
||||
<td>1.711s</td>
|
||||
<td class="failures">0%</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -170,7 +170,7 @@
|
||||
<td>13</td>
|
||||
<td>2</td>
|
||||
<td>0</td>
|
||||
<td>0.083s</td>
|
||||
<td>0.051s</td>
|
||||
<td class="failures">84%</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -184,7 +184,7 @@
|
||||
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
|
||||
</label>
|
||||
</div>Generated by
|
||||
<a href="https://www.gradle.org">Gradle 8.14</a> at 04.01.2026, 16:08:46</p>
|
||||
<a href="https://www.gradle.org">Gradle 8.14</a> at 04.01.2026, 16:32:20</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
</td>
|
||||
<td>
|
||||
<div class="infoBox" id="duration">
|
||||
<div class="counter">0.911s</div>
|
||||
<div class="counter">1.810s</div>
|
||||
<p>duration</p>
|
||||
</div>
|
||||
</td>
|
||||
@@ -111,7 +111,7 @@
|
||||
<td>8</td>
|
||||
<td>0</td>
|
||||
<td>0</td>
|
||||
<td>0.096s</td>
|
||||
<td>0.021s</td>
|
||||
<td class="success">100%</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -121,7 +121,7 @@
|
||||
<td>1</td>
|
||||
<td>0</td>
|
||||
<td>0</td>
|
||||
<td>0.037s</td>
|
||||
<td>0.027s</td>
|
||||
<td class="success">100%</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -131,7 +131,7 @@
|
||||
<td>3</td>
|
||||
<td>3</td>
|
||||
<td>0</td>
|
||||
<td>0.695s</td>
|
||||
<td>1.711s</td>
|
||||
<td class="failures">0%</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -141,7 +141,7 @@
|
||||
<td>13</td>
|
||||
<td>2</td>
|
||||
<td>0</td>
|
||||
<td>0.083s</td>
|
||||
<td>0.051s</td>
|
||||
<td class="failures">84%</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -154,7 +154,7 @@
|
||||
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
|
||||
</label>
|
||||
</div>Generated by
|
||||
<a href="https://www.gradle.org">Gradle 8.14</a> at 04.01.2026, 16:08:46</p>
|
||||
<a href="https://www.gradle.org">Gradle 8.14</a> at 04.01.2026, 16:32:20</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<testsuite name="hhn.temp.project.BadCasesTest" tests="8" skipped="0" failures="0" errors="0" timestamp="2026-01-04T15:08:44.985Z" hostname="KEVIN-THINKPAD" time="0.121">
|
||||
<testsuite name="hhn.temp.project.BadCasesTest" tests="8" skipped="0" failures="0" errors="0" timestamp="2026-01-04T15:32:20.146Z" hostname="KEVIN-THINKPAD" time="0.035">
|
||||
<properties/>
|
||||
<testcase name="Assert List isn't empty after adding a task" classname="hhn.temp.project.BadCasesTest" time="0.045"/>
|
||||
<testcase name="Assert non-existent commands are recognized as such" classname="hhn.temp.project.BadCasesTest" time="0.015"/>
|
||||
<testcase name="Assert that Remove Task is programmed defensively" classname="hhn.temp.project.BadCasesTest" time="0.014"/>
|
||||
<testcase name="Assert that removing a non-existent worker throws an Exception" classname="hhn.temp.project.BadCasesTest" time="0.006"/>
|
||||
<testcase name="Assert Add Task is programmed defensively" classname="hhn.temp.project.BadCasesTest" time="0.007"/>
|
||||
<testcase name="Assert only existing tasks can be edited" classname="hhn.temp.project.BadCasesTest" time="0.003"/>
|
||||
<testcase name="Assert List isn't empty after adding a task" classname="hhn.temp.project.BadCasesTest" time="0.004"/>
|
||||
<testcase name="Assert non-existent commands are recognized as such" classname="hhn.temp.project.BadCasesTest" time="0.001"/>
|
||||
<testcase name="Assert that Remove Task is programmed defensively" classname="hhn.temp.project.BadCasesTest" time="0.002"/>
|
||||
<testcase name="Assert that removing a non-existent worker throws an Exception" classname="hhn.temp.project.BadCasesTest" time="0.002"/>
|
||||
<testcase name="Assert Add Task is programmed defensively" classname="hhn.temp.project.BadCasesTest" time="0.002"/>
|
||||
<testcase name="Assert only existing tasks can be edited" classname="hhn.temp.project.BadCasesTest" time="0.004"/>
|
||||
<testcase name="Assert that un-/finishing a Task only works with valid parameters" classname="hhn.temp.project.BadCasesTest" time="0.003"/>
|
||||
<testcase name="Assert that added tasks can't be Null" classname="hhn.temp.project.BadCasesTest" time="0.003"/>
|
||||
<system-out><![CDATA[Unknown command. Type 'help' for available commands.
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<testsuite name="hhn.temp.project.GoodCasesTest" tests="13" skipped="0" failures="2" errors="0" timestamp="2026-01-04T15:08:45.821Z" hostname="KEVIN-THINKPAD" time="0.107">
|
||||
<testsuite name="hhn.temp.project.GoodCasesTest" tests="13" skipped="0" failures="2" errors="0" timestamp="2026-01-04T15:32:20.071Z" hostname="KEVIN-THINKPAD" time="0.067">
|
||||
<properties/>
|
||||
<testcase name="Check Getters" classname="hhn.temp.project.GoodCasesTest" time="0.007"/>
|
||||
<testcase name="Check that editing is possible through UI" classname="hhn.temp.project.GoodCasesTest" time="0.026">
|
||||
<testcase name="Check Getters" classname="hhn.temp.project.GoodCasesTest" time="0.014"/>
|
||||
<testcase name="Check that editing is possible through UI" classname="hhn.temp.project.GoodCasesTest" time="0.008">
|
||||
<failure message="org.opentest4j.AssertionFailedError: expected: <Walk> but was: <Run>" type="org.opentest4j.AssertionFailedError">org.opentest4j.AssertionFailedError: expected: <Walk> but was: <Run>
|
||||
at app//org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
|
||||
at app//org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
|
||||
@@ -16,14 +16,14 @@
|
||||
at java.base@17.0.2/java.util.ArrayList.forEach(ArrayList.java:1511)
|
||||
</failure>
|
||||
</testcase>
|
||||
<testcase name="Check that every required surface command actually works" classname="hhn.temp.project.GoodCasesTest" time="0.012"/>
|
||||
<testcase name="Assert that added Tasks are added to the List" classname="hhn.temp.project.GoodCasesTest" time="0.002"/>
|
||||
<testcase name="Assert that Worker can remove Task" classname="hhn.temp.project.GoodCasesTest" time="0.002"/>
|
||||
<testcase name="Check that every task command works" classname="hhn.temp.project.GoodCasesTest" time="0.006"/>
|
||||
<testcase name="Assert that a Worker can add a Task" classname="hhn.temp.project.GoodCasesTest" time="0.003"/>
|
||||
<testcase name="Assert that removing Workers is possible through the UI" classname="hhn.temp.project.GoodCasesTest" time="0.005"/>
|
||||
<testcase name="Assert existing Tasks can be edited" classname="hhn.temp.project.GoodCasesTest" time="0.001"/>
|
||||
<testcase name="Assert that removing a worker removes the worker from the worker list" classname="hhn.temp.project.GoodCasesTest" time="0.003">
|
||||
<testcase name="Check that every required surface command actually works" classname="hhn.temp.project.GoodCasesTest" time="0.004"/>
|
||||
<testcase name="Assert that added Tasks are added to the List" classname="hhn.temp.project.GoodCasesTest" time="0.001"/>
|
||||
<testcase name="Assert that Worker can remove Task" classname="hhn.temp.project.GoodCasesTest" time="0.001"/>
|
||||
<testcase name="Check that every task command works" classname="hhn.temp.project.GoodCasesTest" time="0.005"/>
|
||||
<testcase name="Assert that a Worker can add a Task" classname="hhn.temp.project.GoodCasesTest" time="0.001"/>
|
||||
<testcase name="Assert that removing Workers is possible through the UI" classname="hhn.temp.project.GoodCasesTest" time="0.002"/>
|
||||
<testcase name="Assert existing Tasks can be edited" classname="hhn.temp.project.GoodCasesTest" time="0.003"/>
|
||||
<testcase name="Assert that removing a worker removes the worker from the worker list" classname="hhn.temp.project.GoodCasesTest" time="0.005">
|
||||
<failure message="org.opentest4j.AssertionFailedError: Expected java.lang.IllegalArgumentException to be thrown, but nothing was thrown." type="org.opentest4j.AssertionFailedError">org.opentest4j.AssertionFailedError: Expected java.lang.IllegalArgumentException to be thrown, but nothing was thrown.
|
||||
at app//org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:152)
|
||||
at app//org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:73)
|
||||
@@ -36,8 +36,8 @@
|
||||
</failure>
|
||||
</testcase>
|
||||
<testcase name="Assert that the Scanner is actually started when AM calls start" classname="hhn.temp.project.GoodCasesTest" time="0.002"/>
|
||||
<testcase name="Assert that Task State is actually changed when submitted as finished" classname="hhn.temp.project.GoodCasesTest" time="0.011"/>
|
||||
<testcase name="Assert deleted Tasks no longer show up in the List" classname="hhn.temp.project.GoodCasesTest" time="0.003"/>
|
||||
<testcase name="Assert that Task State is actually changed when submitted as finished" classname="hhn.temp.project.GoodCasesTest" time="0.004"/>
|
||||
<testcase name="Assert deleted Tasks no longer show up in the List" classname="hhn.temp.project.GoodCasesTest" time="0.001"/>
|
||||
<system-out><![CDATA[Enter task ID: Error: Cannot invoke "java.util.Scanner.nextLine()" because "this.scanner" is null
|
||||
Enter new name;description: Error: Cannot invoke "java.util.Scanner.nextLine()" because "this.scanner" is null
|
||||
Unknown command. Type 'help' for available commands.
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user