Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2024-08-23 10:00:09 +02:00 committed by Alper Öztürk
parent 49b23d2a96
commit 3e0bb40a1b

View file

@ -40,7 +40,10 @@ class FileNameValidatorTests : AbstractIT() {
@Test @Test
fun testInvalidCharacter() { fun testInvalidCharacter() {
val result = FileNameValidator.checkFileName("file<name", capability, targetContext) val result = FileNameValidator.checkFileName("file<name", capability, targetContext)
assertEquals("File name contains invalid characters: <", result) assertEquals(
String.format(targetContext.getString(R.string.file_name_validator_error_invalid_character), "<"),
result
)
} }
@Test @Test