mirror of
https://github.com/nextcloud/android.git
synced 2024-11-24 14:15:44 +03:00
fix test
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
49b23d2a96
commit
3e0bb40a1b
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue