From 43f18c4ca35d2a087ac9924a91f6c323ecd79831 Mon Sep 17 00:00:00 2001 From: Smarshal21 Date: Mon, 18 Sep 2023 19:45:25 +0530 Subject: [PATCH] FIxed ktlintCheck Errors --- .../java/com/nextcloud/talk/utils/BundleKeysTest.kt | 13 +++++++++---- .../java/com/nextcloud/talk/utils/UriUtilsTest.kt | 1 - .../talk/webrtc/PeerConnectionNotifierTest.kt | 1 + 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/app/src/test/java/com/nextcloud/talk/utils/BundleKeysTest.kt b/app/src/test/java/com/nextcloud/talk/utils/BundleKeysTest.kt index 1ee70289247..72b42a9f164 100644 --- a/app/src/test/java/com/nextcloud/talk/utils/BundleKeysTest.kt +++ b/app/src/test/java/com/nextcloud/talk/utils/BundleKeysTest.kt @@ -57,6 +57,7 @@ class BundleKeysTest { assertEquals("KEY_INVITED_GROUP", BundleKeys.KEY_INVITED_GROUP) assertEquals("KEY_INVITED_EMAIL", BundleKeys.KEY_INVITED_EMAIL) } + @Test fun testBundleKeysValues2() { assertEquals("KEY_CONVERSATION_NAME", BundleKeys.KEY_CONVERSATION_NAME) @@ -80,10 +81,14 @@ class BundleKeysTest { assertEquals("KEY_SYSTEM_NOTIFICATION_ID", BundleKeys.KEY_SYSTEM_NOTIFICATION_ID) assertEquals("KEY_MESSAGE_ID", BundleKeys.KEY_MESSAGE_ID) assertEquals("KEY_MIME_TYPE_FILTER", BundleKeys.KEY_MIME_TYPE_FILTER) - assertEquals("KEY_PARTICIPANT_PERMISSION_CAN_PUBLISH_AUDIO", - BundleKeys.KEY_PARTICIPANT_PERMISSION_CAN_PUBLISH_AUDIO) - assertEquals("KEY_PARTICIPANT_PERMISSION_CAN_PUBLISH_VIDEO", - BundleKeys.KEY_PARTICIPANT_PERMISSION_CAN_PUBLISH_VIDEO) + assertEquals( + "KEY_PARTICIPANT_PERMISSION_CAN_PUBLISH_AUDIO", + BundleKeys.KEY_PARTICIPANT_PERMISSION_CAN_PUBLISH_AUDIO + ) + assertEquals( + "KEY_PARTICIPANT_PERMISSION_CAN_PUBLISH_VIDEO", + BundleKeys.KEY_PARTICIPANT_PERMISSION_CAN_PUBLISH_VIDEO + ) assertEquals("KEY_IS_MODERATOR", BundleKeys.KEY_IS_MODERATOR) assertEquals("KEY_SWITCH_TO_ROOM", BundleKeys.KEY_SWITCH_TO_ROOM) assertEquals("KEY_START_CALL_AFTER_ROOM_SWITCH", BundleKeys.KEY_START_CALL_AFTER_ROOM_SWITCH) diff --git a/app/src/test/java/com/nextcloud/talk/utils/UriUtilsTest.kt b/app/src/test/java/com/nextcloud/talk/utils/UriUtilsTest.kt index 6c27e062f6a..6737246deb6 100644 --- a/app/src/test/java/com/nextcloud/talk/utils/UriUtilsTest.kt +++ b/app/src/test/java/com/nextcloud/talk/utils/UriUtilsTest.kt @@ -26,7 +26,6 @@ class UriUtilsTest { @Test fun testHasHttpProtocolPrefixed() { - val uriHttp = "http://www.example.com" val resultHttp = UriUtils.hasHttpProtocollPrefixed(uriHttp) Assert.assertTrue(resultHttp) diff --git a/app/src/test/java/com/nextcloud/talk/webrtc/PeerConnectionNotifierTest.kt b/app/src/test/java/com/nextcloud/talk/webrtc/PeerConnectionNotifierTest.kt index 36f421bfe47..59c0286ccca 100644 --- a/app/src/test/java/com/nextcloud/talk/webrtc/PeerConnectionNotifierTest.kt +++ b/app/src/test/java/com/nextcloud/talk/webrtc/PeerConnectionNotifierTest.kt @@ -31,6 +31,7 @@ class PeerConnectionNotifierTest { private var observer1: PeerConnectionObserver? = null private var observer2: PeerConnectionObserver? = null private var mockStream: MediaStream? = null + @Before fun setUp() { notifier = PeerConnectionNotifier()