Browse Source

refactoring: AdminTestClass

remotes/origin/fdai7780
Tobias Herbert 11 months ago
parent
commit
af237c01d2
  1. 5
      src/test/java/org/example/AdminTest.java

5
src/test/java/org/example/AdminTest.java

@ -36,10 +36,11 @@ class AdminTest {
admin.writeToFile(admin, filename);
String content = Files.readString(Path.of(filename));
Path path = Path.of(filename);
String content = Files.readString(path);
assertEquals("Simon\nA1001\nAdmin", content);
Files.delete(Path.of(filename));
Files.delete(path);
}

Loading…
Cancel
Save