Skip to content

Commit

Permalink
Fix current year in Techem decoder test
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanno - Felix Wagner committed Jan 17, 2021
1 parent a92b888 commit a9087a0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public void testSD76F0() throws Exception {

Assertions.assertThat(device.getMeasurements()).hasSize(4)
.areAtLeastOne(record(Type.STATUS, 0))
.areAtLeastOne(record(Type.CURRENT_READING_DATE, LocalDate.of(2020, 3, 23)))
.areAtLeastOne(record(Type.CURRENT_READING_DATE, LocalDate.of(LocalDate.now().getYear(), 3, 23)))
.areAtLeastOne(record(Type.CURRENT_READING_DATE_SMOKE, LocalDate.of(2019, 11, 27)))
.areAtLeastOne(rssi());
}
Expand All @@ -191,7 +191,7 @@ public void testSD76F0_extra() throws Exception {

Assertions.assertThat(device.getMeasurements()).hasSize(4)
.areAtLeastOne(record(Type.STATUS, 0))
.areAtLeastOne(record(Type.CURRENT_READING_DATE, LocalDate.of(2020, 2, 22)))
.areAtLeastOne(record(Type.CURRENT_READING_DATE, LocalDate.of(LocalDate.now().getYear(), 2, 22)))
.areAtLeastOne(record(Type.CURRENT_READING_DATE_SMOKE, LocalDate.of(2018, 11, 15)))
.areAtLeastOne(rssi());
}
Expand Down

0 comments on commit a9087a0

Please sign in to comment.