mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-08-15 19:56:02 +00:00
simplified some more bindings
This commit is contained in:
@@ -15,12 +15,17 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
public class VaultSettingsTest {
|
||||
|
||||
@ParameterizedTest
|
||||
@CsvSource({"a\u000Fa,a_a", ": \\,_ _", "汉语,汉语", "..,_", "a\ta,a\u0020a", "\t\n\r,_"})
|
||||
@ParameterizedTest(name = "VaultSettings.normalizeDisplayName({0}) = {1}")
|
||||
@CsvSource(value = {
|
||||
"a\u000Fa,a_a",
|
||||
": \\,_ _",
|
||||
"汉语,汉语",
|
||||
"..,_",
|
||||
"a\ta,a\u0020a",
|
||||
"'\t\n\r',_"
|
||||
})
|
||||
public void testNormalize(String test, String expected) {
|
||||
VaultSettings settings = new VaultSettings("id");
|
||||
settings.displayName().setValue(test);
|
||||
assertEquals(expected, settings.normalizeDisplayName());
|
||||
assertEquals(expected, VaultSettings.normalizeDisplayName(test));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user