Rough Skeleton for Tests and Classes

This commit is contained in:
2025-12-03 16:28:17 +01:00
parent 668a76e26c
commit c5e26bf594
8 changed files with 91 additions and 17 deletions

View File

@@ -1,12 +1,36 @@
package java;
import hhn.temp.project.AssignmentManager;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
public class BadCasesTest {
@BeforeEach
public void setup() {
AssignmentManager manager = new AssignmentManager();
}
@Test
@DisplayName("Assert that added tasks can't be Null")
public void assertNewTasksAreNotNull() {
}
@Test
@DisplayName("Assert List isn't empty after adding a task")
public void assertListNowEmptyAfterAdd() {
}
@Test
@DisplayName("Assert only existing tasks can be edited")
public void assertEditOnlyExistingTasks() {
}
@Test
@DisplayName("Assert Worker can only edit own tasks")
public void assertWorkerMayOnlyEditOwnTasks() {
}

View File

@@ -1,14 +1,51 @@
package java;
import hhn.temp.project.AssignmentManager;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
public class GoodCasesTest {
@BeforeEach
public void setup() {
AssignmentManager manager = new AssignmentManager();
}
@Test
@DisplayName("Assert that a Worker can add a Task")
public void assertWorkerCanAddTask() {
}
@Test
@DisplayName("Assert that added Tasks are added to the List")
public void assertTasksShowInList() {
}
@Test
@DisplayName("Assert existing Tasks can be edited")
public void assertExistingTasksCanBeEdited() {
}
@Test
@DisplayName("Assert that Worker can remove own Task")
public void assertWorkerCanRemoveOwnTask() {
}
@Test
@DisplayName("Assert that Admin can remove every Task")
public void assertAdminCanRemoveEveryTask() {
}
@Test
@DisplayName("Assert deleted Tasks no longer show up in the List")
public void assertDeletedTasksDisappear() {
}
}