Skip to content

Commit

Permalink
#33 Expect to find a sensor in a room, and the SensorId is yet not ma…
Browse files Browse the repository at this point in the history
…tched.
  • Loading branch information
baardl committed Apr 24, 2023
1 parent d57cc41 commit a00d0ed
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,10 @@ void findMissingSensorId() {
"msre3","building2","floor10","room1","Electricity","kwh");
repository.add(new MappedSensorId(null, recObject));
assertEquals(1, repository.find(query).size());
SensorRecObject co2Sensor = buildRecObject("recId8", "TFM-8",
"msre3","building2","floor10","room1","CO2","ppm");
repository.add(new MappedSensorId(null, co2Sensor));
query = new MappedIdQueryBuilder().missingSensorId().sensorType("CO2").build();
assertEquals(1, repository.find(query).size());
}
}

0 comments on commit a00d0ed

Please sign in to comment.