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.178s) |
| testBlankFileName | passed (0.177s) |
| testEmptyFileName | passed (0.174s) |
| testEndsWithSpaceOrPeriod | passed (0.173s) |
| testFileAlreadyExists | passed (0.186s) |
| testFilePathEndingWithPeriod | passed (0.174s) |
| testFilePathWithInvalidCharacter | failed (0.341s) |
| testFilePathWithNestedFolder | failed (0.346s) |
| testFilePathWithReservedName | failed (0.349s) |
| testFolderPathEndingWithSpace | passed (0.214s) |
| testFolderPathWithInvalidCharacter | failed (0.340s) |
| testFolderPathWithReservedName | failed (0.343s) |
| testForbiddenFilenameExtension | failed (0.342s) |
| testInvalidCharacter | failed (0.367s) |
| testIsFileHidden | passed (0.176s) |
| testIsFileNameAlreadyExist | passed (0.178s) |
| testLongFileName | passed (0.225s) |
| testOnlyFolderPath | passed (0.178s) |
| testOnlyFolderPathWithOneReservedName | failed (0.336s) |
| testReservedName | failed (0.352s) |
| testTooLongFileName | passed (0.183s) |
| testValidFileName | passed (0.174s) |
| testValidFolderAndFilePaths | passed (0.174s) |