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:202)
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:232)
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:178)
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:190)
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:166)
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:71)
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:50)
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:252)
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:62)
Tests
| Test | emulator-5554 |
|---|---|
| skipValidationWhenWCFDisabled | passed (0.255s) |
| testBlankFileName | passed (0.274s) |
| testEmptyFileName | passed (0.270s) |
| testEndsWithSpaceOrPeriod | passed (0.258s) |
| testFileAlreadyExists | passed (0.260s) |
| testFilePathEndingWithPeriod | passed (0.259s) |
| testFilePathWithInvalidCharacter | failed (0.525s) |
| testFilePathWithNestedFolder | failed (0.521s) |
| testFilePathWithReservedName | failed (0.510s) |
| testFolderPathEndingWithSpace | passed (0.254s) |
| testFolderPathWithInvalidCharacter | failed (0.526s) |
| testFolderPathWithReservedName | failed (0.522s) |
| testForbiddenFilenameExtension | failed (0.512s) |
| testInvalidCharacter | failed (0.513s) |
| testIsFileHidden | passed (0.257s) |
| testIsFileNameAlreadyExist | passed (0.261s) |
| testLongFileName | passed (0.316s) |
| testOnlyFolderPath | passed (0.267s) |
| testOnlyFolderPathWithOneReservedName | failed (0.510s) |
| testReservedName | failed (0.507s) |
| testTooLongFileName | passed (0.258s) |
| testValidFileName | passed (0.259s) |
| testValidFolderAndFilePaths | passed (0.257s) |