From d2146298c6b10e7b6ff72b54d6d09c0d9a60b32a Mon Sep 17 00:00:00 2001 From: Tobias Herbert Date: Tue, 6 Feb 2024 22:16:13 +0100 Subject: [PATCH] documentation: AdministrationTest and AdminTest --- src/test/java/org/example/AdminTest.java | 6 +++--- src/test/java/org/example/AdministrationTest.java | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/example/AdminTest.java b/src/test/java/org/example/AdminTest.java index e8fa2fa..a863a79 100644 --- a/src/test/java/org/example/AdminTest.java +++ b/src/test/java/org/example/AdminTest.java @@ -10,7 +10,7 @@ import java.util.List; import static org.junit.jupiter.api.Assertions.*; class AdminTest { - + //Tests printAdminInfo Method @org.junit.jupiter.api.Test void printAdminInfo() { Admin admin = new Admin("Aaron", "A1001", "Admin"); @@ -27,7 +27,7 @@ class AdminTest { assertTrue(printedOutput.contains("Admin")); } - + //Tests writeToFile Method @Test void writeToFile() throws IOException { Admin admin = new Admin("Simon", "A1001", "Admin") ; @@ -43,7 +43,7 @@ class AdminTest { Files.delete(path); } - + //Tests readFromFile Method @Test void readFromFile() throws IOException { diff --git a/src/test/java/org/example/AdministrationTest.java b/src/test/java/org/example/AdministrationTest.java index 3b78a4a..8edf5c7 100644 --- a/src/test/java/org/example/AdministrationTest.java +++ b/src/test/java/org/example/AdministrationTest.java @@ -6,6 +6,7 @@ import static org.junit.jupiter.api.Assertions.*; class AdministrationTest { + // Test the findProfessorById Method @Test void findProfessorById() { Administration administration = new Administration();