diff --git a/src/test/java/org/example/AdminTest.java b/src/test/java/org/example/AdminTest.java index 890fed2..b6b50a2 100644 --- a/src/test/java/org/example/AdminTest.java +++ b/src/test/java/org/example/AdminTest.java @@ -30,7 +30,7 @@ class AdminTest { //Tests printAdminInfo Method @org.junit.jupiter.api.Test - void printAdminInfo() { + void testPrintAdminInfo() { Admin admin = new Admin("Aaron", "A1001", "Admin"); ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); @@ -47,7 +47,7 @@ class AdminTest { } //Tests writeToFile Method @Test - void writeToFile() throws IOException { + void testWriteToFile() throws IOException { Admin admin = new Admin("Simon", "A1001", "Admin") ; admin.writeToFile(admin, fileName()); @@ -59,7 +59,7 @@ class AdminTest { } //Tests readFromFile Method @Test - void readFromFile() throws IOException { + void testReadFromFile() throws IOException { try (PrintWriter writer = new PrintWriter(new FileWriter("testAdminData.txt"))){ writer.println("Thomas");