Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
Kai Kreuzer 2016-04-05 11:39:20 +02:00
Родитель 810a54b981
Коммит 2130472f03
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -89,7 +89,7 @@ class ConfigurableServiceResourceOSGiTest extends OSGiTest {
void 'assert configuration management works'() {
Response response = configurableServiceResource.getConfiguration("id")
assertThat response.status, is(404)
assertThat response.status, is(200)
response = configurableServiceResource.updateConfiguration("id", ["a" : "b"])
assertThat response.status, is(204)
@ -107,7 +107,8 @@ class ConfigurableServiceResourceOSGiTest extends OSGiTest {
assertThat response.entity.get("a"), is(equalTo("c"))
response = configurableServiceResource.getConfiguration("id")
assertThat response.status, is(404)
assertThat response.status, is(200)
assertThat response.entity.get("a"), nullValue()
response = configurableServiceResource.deleteConfiguration("id")
assertThat response.status, is(204)