Class com.nextcloud.utils.FileNameValidatorTests
|
57%
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:186)
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:216)
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:162)
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:174)
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:150)
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:69)
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:48)
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:236)
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:60)
Tests
| Test | emulator-5554 |
|---|---|
| skipValidationWhenWCFDisabled | passed (0.237s) |
| testBlankFileName | passed (0.237s) |
| testEmptyFileName | passed (0.232s) |
| testEndsWithSpaceOrPeriod | passed (0.523s) |
| testFileAlreadyExists | passed (0.307s) |
| testFilePathEndingWithPeriod | passed (0.399s) |
| testFilePathWithInvalidCharacter | failed (0.591s) |
| testFilePathWithNestedFolder | failed (0.453s) |
| testFilePathWithReservedName | failed (1.128s) |
| testFolderPathEndingWithSpace | passed (0.257s) |
| testFolderPathWithInvalidCharacter | failed (0.496s) |
| testFolderPathWithReservedName | failed (0.818s) |
| testForbiddenFilenameExtension | failed (0.511s) |
| testInvalidCharacter | failed (0.912s) |
| testIsFileHidden | passed (0.313s) |
| testIsFileNameAlreadyExist | passed (0.239s) |
| testOnlyFolderPath | passed (0.334s) |
| testOnlyFolderPathWithOneReservedName | failed (0.484s) |
| testReservedName | failed (1.129s) |
| testValidFileName | passed (0.251s) |
| testValidFolderAndFilePaths | passed (0.588s) |