mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-19 03:01:27 +00:00
add test
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package org.cryptomator.common;
|
||||
|
||||
import org.jetbrains.annotations.VisibleForTesting;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@@ -27,7 +28,8 @@ public class PropertiesPreprocessor {
|
||||
LOG.info("Preprocessed cryptomator properties.");
|
||||
}
|
||||
|
||||
private static String process(String value) {
|
||||
@VisibleForTesting
|
||||
static String process(String value) {
|
||||
return TEMPLATE.matcher(value).replaceAll(match -> //
|
||||
switch (match.group(1)) {
|
||||
case "appdir" -> ENV.get("APPDIR");
|
||||
|
||||
Reference in New Issue
Block a user