Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
  • Loading branch information
mherwege committed Oct 17, 2022
1 parent 4e7cdc1 commit 614d5d0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,12 @@ public void assertInvalidThingConfigurationValuesAreHandled() {

private void testInvalidConfiguration() {
waitForAssert(() -> {
assertThat("Invalid configuratuin is used !", systemInfoThing.getStatus(),
assertThat("Invalid configuration is used !", systemInfoThing.getStatus(),
is(equalTo(ThingStatus.OFFLINE)));
assertThat(systemInfoThing.getStatusInfo().getStatusDetail(),
is(equalTo(ThingStatusDetail.HANDLER_INITIALIZING_ERROR)));
assertThat(systemInfoThing.getStatusInfo().getDescription(), is(equalTo("Thing cannot be initialized!")));
assertThat(systemInfoThing.getStatusInfo().getDescription(),
is(equalTo("@text/offline.cannot-initialize")));
});
}

Expand Down

0 comments on commit 614d5d0

Please sign in to comment.