Skip to content

Commit d922fac

Browse files
Update library/src/androidTest/java/com/owncloud/android/lib/resources/shares/CreateShareRemoteOperationIT.kt
Co-authored-by: Tom <70907959+ZetaTom@users.noreply.github.com> Signed-off-by: Alper Öztürk <67455295+alperozturk96@users.noreply.github.com>
1 parent aa578fc commit d922fac

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

library/src/androidTest/java/com/owncloud/android/lib/resources/shares/CreateShareRemoteOperationIT.kt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,14 @@ class CreateShareRemoteOperationIT : AbstractIT() {
3232

3333
@Test
3434
fun createShareWithNoteAndAttributes() {
35-
val attributes =
36-
ShareAttributesJsonHandler.toJson(
37-
listOf(ShareAttributes.createDownloadAttributes(true))
38-
)
35+
val attributes = listOf(ShareAttributes.createDownloadAttributes(true))
3936
val note = "Note with attributes"
4037
val path = "/shareWithAttributes/"
4138

4239
createFolder(path)
43-
val share = createShare(path, "admin", note, attributes)
40+
val share = createShare(path, "admin", note, ShareAttributesJsonHandler.toJson(attributes))
4441
assertEquals(note, share.note)
42+
assertEquals(attributes, ShareAttributesJsonHandler.toList(share.attributes))
4543
}
4644

4745
@Test

0 commit comments

Comments
 (0)