diff options
Diffstat (limited to 'app/src/test')
-rw-r--r-- | app/src/test/java/it/niedermann/nextcloud/deck/util/AttachmentUtilTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/src/test/java/it/niedermann/nextcloud/deck/util/AttachmentUtilTest.java b/app/src/test/java/it/niedermann/nextcloud/deck/util/AttachmentUtilTest.java index 6273379e3..653657540 100644 --- a/app/src/test/java/it/niedermann/nextcloud/deck/util/AttachmentUtilTest.java +++ b/app/src/test/java/it/niedermann/nextcloud/deck/util/AttachmentUtilTest.java @@ -24,13 +24,13 @@ public class AttachmentUtilTest { final String accountUrl = "https://example.com"; final Attachment attachment1 = new Attachment(); - attachment1.setFileid(1337L); + attachment1.setFileId(1337L); attachment1.setType(EAttachmentType.FILE); final String thumbnailUrl1 = AttachmentUtil.getThumbnailUrl(versionThatDoesSupportFileAttachments, accountUrl, -1L, attachment1, 500); assertEquals("https://example.com/index.php/core/preview?fileId=1337&x=500&y=500", thumbnailUrl1); final Attachment attachment2 = new Attachment(); - attachment2.setFileid(815L); + attachment2.setFileId(815L); attachment2.setType(EAttachmentType.FILE); final String thumbnailUrl2 = AttachmentUtil.getThumbnailUrl(versionThatDoesSupportFileAttachments, accountUrl, 0L, attachment2, 4711); assertEquals("https://example.com/index.php/core/preview?fileId=815&x=4711&y=4711", thumbnailUrl2); @@ -38,7 +38,7 @@ public class AttachmentUtilTest { // Given there is an invalid fileId... final Attachment attachment3 = new Attachment(); attachment3.setId(999L); - attachment3.setFileid(null); + attachment3.setFileId(null); final String thumbnailUrl3 = AttachmentUtil.getThumbnailUrl(versionThatDoesSupportFileAttachments, accountUrl, 15L, attachment3, 205); // ... a fallback to the attachment itself should be returned assertEquals("https://example.com/index.php/apps/deck/cards/15/attachment/999", thumbnailUrl3); @@ -46,7 +46,7 @@ public class AttachmentUtilTest { // Given the server version does not support file attachments yet... final Attachment attachment4 = new Attachment(); attachment4.setId(111L); - attachment4.setFileid(222L); + attachment4.setFileId(222L); final String thumbnailUrl4 = AttachmentUtil.getThumbnailUrl(versionThatDoesNotSupportFileAttachments, accountUrl, 333L, attachment4, 444); // ... a fallback to the attachment itself should be returned assertEquals("https://example.com/index.php/apps/deck/cards/333/attachment/111", thumbnailUrl4); |