Skip to content

Commit bea907d

Browse files
committed
#1257 change DeviceConfigurationProviderTest to load concatenated JSON
via DeviceConfigurationProvider
1 parent 57ab55a commit bea907d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

app/src/test/java/li/klass/fhem/update/backend/device/configuration/DeviceConfigurationProviderTest.kt

+2-5
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,8 @@ class DeviceConfigurationProviderTest {
4949

5050
@Test
5151
fun should_parse_concatenated_json() {
52-
val file = File(DeviceConfiguration::class.java.getResource("deviceConfiguration.json").toURI())
53-
val content = Resources.toString(file.toURI().toURL(), Charsets.UTF_8)
54-
val result = JSON.parse(DevicesConfiguration::class.serializer(), content)
55-
56-
assertThat(result).`as`(file.name).isNotNull()
52+
val configuration = DeviceConfigurationProvider().configurationFor("FS20")
53+
assertThat(configuration).isNotNull()
5754
}
5855

5956
companion object {

0 commit comments

Comments
 (0)