Fixed lombok

This commit is contained in:
Claudio Maggioni (maggicl) 2020-05-18 11:54:08 +02:00
parent 0151467b2e
commit be5ab5b4b3
2 changed files with 4 additions and 2 deletions

View file

@ -7,9 +7,11 @@ import javax.persistence.Enumerated;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor;
@Data @Data
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor
public class SensorSaveRequest { public class SensorSaveRequest {
/** The type of this sensor */ /** The type of this sensor */
@NotNull @NotNull

View file

@ -22,8 +22,8 @@ public class SensorSaveRequestTests {
@Test @Test
@DisplayName("test setRoomId") @DisplayName("test setRoomId")
public void testSetRoomId() { public void testSetRoomId() {
sensor.setRoomId(42l); sensor.setRoomId(42L);
assertEquals(42l, sensor.getRoomId()); assertEquals(42L, sensor.getRoomId());
} }
@Test @Test