diff --git a/src/androidTest/java/com/owncloud/android/ui/activity/NotificationsActivityIT.kt b/src/androidTest/java/com/owncloud/android/ui/activity/NotificationsActivityIT.kt index ea336e8460..9c4da9a6d1 100644 --- a/src/androidTest/java/com/owncloud/android/ui/activity/NotificationsActivityIT.kt +++ b/src/androidTest/java/com/owncloud/android/ui/activity/NotificationsActivityIT.kt @@ -65,41 +65,50 @@ class NotificationsActivityIT : AbstractIT() { date.set(110, 2, 2, 10, 20, 30) val notifications = ArrayList() - notifications.add(Notification(1, - "files", - "user", - date.time, - "objectType", - "objectId", - "App recommendation: Tasks", - "SubjectRich", - HashMap(), - "Sync tasks from various devices with your Nextcloud and edit them online.", - "MessageRich", - HashMap(), - "link", - "icon", - ArrayList())) + notifications.add( + Notification( + 1, + "files", + "user", + date.time, + "objectType", + "objectId", + "App recommendation: Tasks", + "SubjectRich", + HashMap(), + "Sync tasks from various devices with your Nextcloud and edit them online.", + "MessageRich", + HashMap(), + "link", + "icon", + ArrayList() + ) + ) val actions = ArrayList() actions.add(Action("Send usage", "link", "url", true)) actions.add(Action("Not now", "link", "url", false)) - notifications.add(Notification(1, - "files", - "user", - date.time, - "objectType", - "objectId", - "Help improve Nextcloud", - "SubjectRich", - HashMap(), - "Do you want to help us to improve Nextcloud by providing some anonymize data about your setup and usage?", - "MessageRich", - HashMap(), - "link", - "icon", - actions)) + notifications.add( + Notification( + 1, + "files", + "user", + date.time, + "objectType", + "objectId", + "Help improve Nextcloud", + "SubjectRich", + HashMap(), + "Do you want to help us to improve Nextcloud" + + " by providing some anonymize data about your setup and usage?", + "MessageRich", + HashMap(), + "link", + "icon", + actions + ) + ) sut.runOnUiThread { sut.populateList(notifications) }