Skip to content

Commit 58dd877

Browse files
committed
Response to Jack's comments
1 parent 6aa011c commit 58dd877

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/kotlin/gov/cdc/prime/fhirconverter/translation/hl7/schema/ConfigSchemaReaderTests.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,13 @@ class ConfigSchemaReaderTests {
181181
}
182182

183183
@Test
184-
fun `test read converter schema with lookuptable`() {
184+
fun `test subtype class must inherit from ValueSetCollection`() {
185185
// Implementation of [ValueSetCollection] to allow valueSet to be retrieved from a lookup table.
186186
class ClassInheritFromValueSetCollection
187-
(@JsonProperty("values") private val values: SortedMap<String, String>) : ValueSetCollection {
188-
override fun toSortedMap(): SortedMap<String, String> = values
187+
(@JsonProperty("testValues") private val testValues: SortedMap<String, String>) : ValueSetCollection {
188+
override fun toSortedMap(): SortedMap<String, String> = testValues
189189
override fun getMappedValue(keyValue: String): String? = null
190-
override fun isNotEmpty(): Boolean = values.isNotEmpty()
190+
override fun isNotEmpty(): Boolean = testValues.isNotEmpty()
191191
}
192192
class ClassNotInheritFromValueSetCollection
193193
assertThat(

0 commit comments

Comments
 (0)