upload
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m8s

This commit is contained in:
Jan-Philipp Luithardt
2025-12-03 17:08:05 +01:00
parent efa4cbe744
commit 322763f98c
31 changed files with 79 additions and 37 deletions

View File

@@ -69,4 +69,18 @@ public class BadCaseTaskTest {
}
@Test
@DisplayName("Assert an IllegalArgumentException when delete a existing Task with wrong arguments")
public void assertExceptionOnDeletingTask (){
String wrongName = "Manager";
String name = "Name";
String description = "Description";
Task task = taskManager.createTask(name, description);
assertThrows(IllegalArgumentException.class, () -> taskManager.deleteTask(null));
assertThrows(IllegalArgumentException.class, () -> taskManager.deleteTask(""));
assertThrows(IllegalArgumentException.class, () -> taskManager.deleteTask(wrongName));
}
}