mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-21 20:21:27 +00:00
add test for AdminPropertiesSetter
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user