From 3a27baad3a0fbe4316bce0f924f8a04e9bb8ce63 Mon Sep 17 00:00:00 2001 From: Juan Carlos Garrote Date: Tue, 4 Apr 2023 11:51:06 +0200 Subject: [PATCH] Fix WebfingerResponse tests --- .../webfinger/responses/WebFingerResponseTest.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/owncloudComLibrary/src/test/java/com/owncloud/android/lib/resources/webfinger/responses/WebFingerResponseTest.kt b/owncloudComLibrary/src/test/java/com/owncloud/android/lib/resources/webfinger/responses/WebFingerResponseTest.kt index bed95002..4b275cd7 100644 --- a/owncloudComLibrary/src/test/java/com/owncloud/android/lib/resources/webfinger/responses/WebFingerResponseTest.kt +++ b/owncloudComLibrary/src/test/java/com/owncloud/android/lib/resources/webfinger/responses/WebFingerResponseTest.kt @@ -22,20 +22,20 @@ class WebFingerResponseTest { @Test fun `check rel in too much information - ok`() { val response = loadResponses(TOO_MUCH_INFORMATION_JSON)!! - Assert.assertEquals("https://gast.somedomain.de", response.links[0].href) - Assert.assertEquals("http://webfinger.owncloud/rel/server-instance", response.links[0].rel) + Assert.assertEquals("https://gast.somedomain.de", response.links!![0].href) + Assert.assertEquals("http://webfinger.owncloud/rel/server-instance", response.links!![0].rel) } @Test(expected = JsonDataException::class) fun `check key value pairs - ko - no href key`() { val response = loadResponses(BROKEN_JSON)!! - Assert.assertEquals("https://gast.somedomain.de", response.links[0].href) + Assert.assertEquals("https://gast.somedomain.de", response.links!![0].href) } @Test(expected = JsonDataException::class) fun `check key value pairs - ko - no rel key`() { val response = loadResponses(BROKEN_JSON)!! - Assert.assertEquals("https://gast.somedomain.de", response.links[0].href) + Assert.assertEquals("https://gast.somedomain.de", response.links!![0].href) } companion object {