This commit is contained in:
2026-06-12 13:09:37 +02:00
parent 387880d926
commit d2b23e3513
@@ -17,6 +17,7 @@ public class TestClient implements CommandLineRunner {
@Override
public void run(String... args) {
// 1c)
autoDAO.createAuto("BMW", "E32", "NE-IN 0000");
List<LogEntry> logs = logEntryDAO.getAllLogEntries();
@@ -24,5 +25,14 @@ public class TestClient implements CommandLineRunner {
for (LogEntry entry : logs) {
System.out.println("[" + entry.time + "] " + entry.message);
}
// 1d)
autoDAO.createAuto("Mercedes", "AMG", "");
List<LogEntry> newLogs = logEntryDAO.getAllLogEntries();
System.out.println("=== Log-Einträge (" + logs.size() + ") ===");
for (LogEntry entry : logs) {
System.out.println("[" + entry.time + "] " + entry.message);
}
}
}