add test for AdminPropertiesSetter

This commit is contained in:
Armin Schrenk
2026-01-15 18:06:24 +01:00
parent 088b177c0e
commit d53f0880ca
3 changed files with 100 additions and 2 deletions

View File

@@ -92,7 +92,7 @@ class AdminPropertiesSetter {
return systemProps;
}
private static Map<String, Object> loadAdminProperties(Path adminPropertiesPath) {
static Map<String, Object> loadAdminProperties(Path adminPropertiesPath) {
try (var in = Files.newInputStream(adminPropertiesPath, StandardOpenOption.READ)) {
var map = JSON.readValue(in, new TypeReference<Map<String, Object>>() {});
if (map == null) {

View File

@@ -15,7 +15,7 @@ class BufferedLog {
record Entry(String className, String message, List<Object> messageInput) {}
synchronized static void log(String className, String message, List<Object> messageInput) {
logMessages.add(new BufferedLog.Entry(className, message, messageInput));
logMessages.add(new Entry(className, message, messageInput));
}
synchronized static void flushTo(Logger log) {