From f0d5260be8418d2d5c1bba2875cbdca1a47ae430 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 18 Jan 2022 12:34:14 +0100 Subject: [PATCH] Fix unit test --- .../test/java/org/billcarsonfr/jsonviewer/ModelParseTest.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/jsonviewer/src/test/java/org/billcarsonfr/jsonviewer/ModelParseTest.kt b/library/jsonviewer/src/test/java/org/billcarsonfr/jsonviewer/ModelParseTest.kt index b2d80911f1..350bcdf289 100644 --- a/library/jsonviewer/src/test/java/org/billcarsonfr/jsonviewer/ModelParseTest.kt +++ b/library/jsonviewer/src/test/java/org/billcarsonfr/jsonviewer/ModelParseTest.kt @@ -85,7 +85,8 @@ class ModelParseTest { val glossSeeAlso = glossDef.keys["GlossSeeAlso"] as JSonViewerArray Assert.assertEquals(2, glossSeeAlso.items.size) - Assert.assertEquals("0", glossSeeAlso.items.first().key) + Assert.assertEquals(0, glossSeeAlso.items.first().index) + Assert.assertNull(glossSeeAlso.items.first().key) Assert.assertEquals("GML", (glossSeeAlso.items.first() as JSonViewerLeaf).stringRes) } }