fix (wip)
This commit is contained in:
parent
2f05253bc1
commit
03ded14ed2
2 changed files with 13 additions and 2 deletions
|
@ -69,7 +69,12 @@ public class SensorControllerTests {
|
|||
|
||||
final SensorSaveRequest toSend =
|
||||
new SensorSaveRequest(
|
||||
Sensor.SensorType.TEMPERATURE, BigDecimal.ZERO, 42L, "Test sensor");
|
||||
Sensor.SensorType.TEMPERATURE,
|
||||
BigDecimal.ZERO,
|
||||
BigDecimal.ZERO,
|
||||
BigDecimal.ZERO,
|
||||
42L,
|
||||
"Test sensor");
|
||||
final Sensor created = sensorController.create(toSend, mockPrincipal);
|
||||
|
||||
checkSensorAgainstRequest(created, toSend);
|
||||
|
|
|
@ -30,7 +30,13 @@ public class SensorSaveRequestTests {
|
|||
@DisplayName("test constructor")
|
||||
public void testConstructorNotEmpty() {
|
||||
SensorSaveRequest newSaveRequest =
|
||||
new SensorSaveRequest(Sensor.SensorType.HUMIDITY, new BigDecimal(12), 12L, "name");
|
||||
new SensorSaveRequest(
|
||||
Sensor.SensorType.HUMIDITY,
|
||||
new BigDecimal(12),
|
||||
BigDecimal.ZERO,
|
||||
BigDecimal.ZERO,
|
||||
12L,
|
||||
"name");
|
||||
assertNotNull(newSaveRequest.getSensor());
|
||||
assertNotNull(newSaveRequest.getName());
|
||||
assertNotNull(newSaveRequest.getRoomId());
|
||||
|
|
Loading…
Reference in a new issue