Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 3a27baa

Browse files
committed
Fix WebfingerResponse tests
1 parent 14baadd commit 3a27baa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

owncloudComLibrary/src/test/java/com/owncloud/android/lib/resources/webfinger/responses/WebFingerResponseTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ class WebFingerResponseTest {
2222
@Test
2323
fun `check rel in too much information - ok`() {
2424
val response = loadResponses(TOO_MUCH_INFORMATION_JSON)!!
25-
Assert.assertEquals("https://gast.somedomain.de", response.links[0].href)
26-
Assert.assertEquals("http://webfinger.owncloud/rel/server-instance", response.links[0].rel)
25+
Assert.assertEquals("https://gast.somedomain.de", response.links!![0].href)
26+
Assert.assertEquals("http://webfinger.owncloud/rel/server-instance", response.links!![0].rel)
2727
}
2828

2929
@Test(expected = JsonDataException::class)
3030
fun `check key value pairs - ko - no href key`() {
3131
val response = loadResponses(BROKEN_JSON)!!
32-
Assert.assertEquals("https://gast.somedomain.de", response.links[0].href)
32+
Assert.assertEquals("https://gast.somedomain.de", response.links!![0].href)
3333
}
3434

3535
@Test(expected = JsonDataException::class)
3636
fun `check key value pairs - ko - no rel key`() {
3737
val response = loadResponses(BROKEN_JSON)!!
38-
Assert.assertEquals("https://gast.somedomain.de", response.links[0].href)
38+
Assert.assertEquals("https://gast.somedomain.de", response.links!![0].href)
3939
}
4040

4141
companion object {

0 commit comments

Comments
 (0)