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:178)
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:207)
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:156)
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:167)
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:145)
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:65)
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:46)
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:226)
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:57)
Tests
| Test | emulator-5554 |
|---|---|
| skipValidationWhenWCFDisabled | passed (0.237s) |
| testBlankFileName | passed (0.240s) |
| testEmptyFileName | passed (0.238s) |
| testEndsWithSpaceOrPeriod | passed (0.233s) |
| testFileAlreadyExists | passed (0.234s) |
| testFilePathEndingWithPeriod | passed (0.240s) |
| testFilePathWithInvalidCharacter | failed (0.471s) |
| testFilePathWithNestedFolder | failed (0.464s) |
| testFilePathWithReservedName | failed (0.477s) |
| testFolderPathEndingWithSpace | passed (0.235s) |
| testFolderPathWithInvalidCharacter | failed (0.571s) |
| testFolderPathWithReservedName | failed (0.489s) |
| testForbiddenFilenameExtension | failed (0.470s) |
| testInvalidCharacter | failed (0.472s) |
| testIsFileHidden | passed (0.237s) |
| testIsFileNameAlreadyExist | passed (0.248s) |
| testOnlyFolderPath | passed (0.242s) |
| testOnlyFolderPathWithOneReservedName | failed (0.461s) |
| testReservedName | failed (0.475s) |
| testValidFileName | passed (0.238s) |
| testValidFolderAndFilePaths | passed (0.236s) |