Thermostat
This commit is contained in:
parent
9a86220a79
commit
1aab50c9f8
1 changed files with 9 additions and 0 deletions
|
@ -63,6 +63,13 @@ public class ThermostatControllerTests {
|
|||
assertThat(toCheck.isUseExternalSensors()).isEqualTo(request.isUseExternalSensors());
|
||||
assertThat(toCheck.getName()).isEqualTo(request.getName());
|
||||
assertThat(toCheck.getRoomId()).isEqualTo(request.getRoomId());
|
||||
if (request.getErr() != null) {
|
||||
assertThat(toCheck.getErr()).isEqualTo(request.getErr());
|
||||
}
|
||||
|
||||
if (request.getTypical() != null) {
|
||||
assertThat(toCheck.getTypical()).isEqualTo(request.getTypical());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -83,6 +90,8 @@ public class ThermostatControllerTests {
|
|||
toSend.setTargetTemperature(new BigDecimal(40));
|
||||
toSend.setName("Thermostat Test");
|
||||
toSend.setUseExternalSensors(true);
|
||||
toSend.setErr(BigDecimal.valueOf(10));
|
||||
toSend.setTypical(BigDecimal.valueOf(15));
|
||||
|
||||
final Thermostat thermostat = thermostatController.create(toSend, mockPrincipal);
|
||||
|
||||
|
|
Loading…
Reference in a new issue