/
rgd045
/
crypt-file
Обзор
Документация
Войти
/
rgd045
/
crypt-file
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/test/java/org/cryptomator/common/settings/VaultSettingsTest.java
31 строка
1017 B
Sebastian Stenzel
simplified some more bindings
10 окт 2022, 13:09
Не верифицирован
10 окт 2022, 13:09
8040b71
Код
Авторство
О чём код?
/******************************************************************************* * Copyright (c) 2016, 2017 Sebastian Stenzel and others. * All rights reserved. * This program and the accompanying materials are made available under the terms of the accompanying LICENSE file. * * Contributors: * Sebastian Stenzel - initial API and implementation *******************************************************************************/ package org.cryptomator.common.settings; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.CsvSource; import static org.junit.jupiter.api.Assertions.assertEquals; public class VaultSettingsTest { @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) { assertEquals(expected, VaultSettings.normalizeDisplayName(test)); } }