Class com.nextcloud.utils.FileNameValidatorTests
|
60%
successful |
Failed tests
testFilePathWithInvalidCharacter
org.junit.AssumptionViolatedException: got: <false>, expected: is <true> at org.junit.Assume.assumeThat(Assume.java:106) at org.junit.Assume.assumeTrue(Assume.java:50) at com.owncloud.android.AbstractIT.testOnlyOnServer(AbstractIT.java:205) at com.nextcloud.utils.FileNameValidatorTests.testFilePathWithInvalidCharacter(FileNameValidatorTests.kt:203)
testFilePathWithNestedFolder
org.junit.AssumptionViolatedException: got: <false>, expected: is <true> at org.junit.Assume.assumeThat(Assume.java:106) at org.junit.Assume.assumeTrue(Assume.java:50) at com.owncloud.android.AbstractIT.testOnlyOnServer(AbstractIT.java:205) at com.nextcloud.utils.FileNameValidatorTests.testFilePathWithNestedFolder(FileNameValidatorTests.kt:233)
testFilePathWithReservedName
org.junit.AssumptionViolatedException: got: <false>, expected: is <true> at org.junit.Assume.assumeThat(Assume.java:106) at org.junit.Assume.assumeTrue(Assume.java:50) at com.owncloud.android.AbstractIT.testOnlyOnServer(AbstractIT.java:205) at com.nextcloud.utils.FileNameValidatorTests.testFilePathWithReservedName(FileNameValidatorTests.kt:179)
testFolderPathWithInvalidCharacter
org.junit.AssumptionViolatedException: got: <false>, expected: is <true> at org.junit.Assume.assumeThat(Assume.java:106) at org.junit.Assume.assumeTrue(Assume.java:50) at com.owncloud.android.AbstractIT.testOnlyOnServer(AbstractIT.java:205) at com.nextcloud.utils.FileNameValidatorTests.testFolderPathWithInvalidCharacter(FileNameValidatorTests.kt:191)
testFolderPathWithReservedName
org.junit.AssumptionViolatedException: got: <false>, expected: is <true> at org.junit.Assume.assumeThat(Assume.java:106) at org.junit.Assume.assumeTrue(Assume.java:50) at com.owncloud.android.AbstractIT.testOnlyOnServer(AbstractIT.java:205) at com.nextcloud.utils.FileNameValidatorTests.testFolderPathWithReservedName(FileNameValidatorTests.kt:167)
testForbiddenFilenameExtension
org.junit.AssumptionViolatedException: got: <false>, expected: is <true> at org.junit.Assume.assumeThat(Assume.java:106) at org.junit.Assume.assumeTrue(Assume.java:50) at com.owncloud.android.AbstractIT.testOnlyOnServer(AbstractIT.java:205) at com.nextcloud.utils.FileNameValidatorTests.testForbiddenFilenameExtension(FileNameValidatorTests.kt:72)
testInvalidCharacter
org.junit.AssumptionViolatedException: got: <false>, expected: is <true> at org.junit.Assume.assumeThat(Assume.java:106) at org.junit.Assume.assumeTrue(Assume.java:50) at com.owncloud.android.AbstractIT.testOnlyOnServer(AbstractIT.java:205) at com.nextcloud.utils.FileNameValidatorTests.testInvalidCharacter(FileNameValidatorTests.kt:51)
testOnlyFolderPathWithOneReservedName
org.junit.AssumptionViolatedException: got: <false>, expected: is <true> at org.junit.Assume.assumeThat(Assume.java:106) at org.junit.Assume.assumeTrue(Assume.java:50) at com.owncloud.android.AbstractIT.testOnlyOnServer(AbstractIT.java:205) at com.nextcloud.utils.FileNameValidatorTests.testOnlyFolderPathWithOneReservedName(FileNameValidatorTests.kt:253)
testReservedName
org.junit.AssumptionViolatedException: got: <false>, expected: is <true> at org.junit.Assume.assumeThat(Assume.java:106) at org.junit.Assume.assumeTrue(Assume.java:50) at com.owncloud.android.AbstractIT.testOnlyOnServer(AbstractIT.java:205) at com.nextcloud.utils.FileNameValidatorTests.testReservedName(FileNameValidatorTests.kt:63)
Tests
| Test | emulator-5554 |
|---|---|
| skipValidationWhenWCFDisabled | passed (0.233s) |
| testBlankFileName | passed (0.245s) |
| testEmptyFileName | passed (0.193s) |
| testEndsWithSpaceOrPeriod | passed (0.214s) |
| testFileAlreadyExists | passed (0.281s) |
| testFilePathEndingWithPeriod | passed (0.282s) |
| testFilePathWithInvalidCharacter | failed (0.450s) |
| testFilePathWithNestedFolder | failed (0.467s) |
| testFilePathWithReservedName | failed (0.454s) |
| testFolderPathEndingWithSpace | passed (0.234s) |
| testFolderPathWithInvalidCharacter | failed (0.495s) |
| testFolderPathWithReservedName | failed (0.406s) |
| testForbiddenFilenameExtension | failed (0.425s) |
| testInvalidCharacter | failed (0.398s) |
| testIsFileHidden | passed (0.208s) |
| testIsFileNameAlreadyExist | passed (0.213s) |
| testLongFileName | passed (0.194s) |
| testOnlyFolderPath | passed (0.343s) |
| testOnlyFolderPathWithOneReservedName | failed (0.375s) |
| testReservedName | failed (0.440s) |
| testTooLongFileName | passed (0.240s) |
| testValidFileName | passed (0.408s) |
| testValidFolderAndFilePaths | passed (0.194s) |