|
|
@ -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 { |
|
|
|
|
|
|
|