Skip to content

Commit 1e510ee

Browse files
committed
feat: use method reference on room service
Signed-off-by: Otavio Santana <[email protected]>
1 parent 10f85a2 commit 1e510ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/soujava/demos/mongodb/document/RoomServiceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ void shouldFindAvailableSmokingRooms() {
165165
List<Room> rooms = this.repository.findAvailableSmokingRooms();
166166
SoftAssertions.assertSoftly(softly -> {
167167
softly.assertThat(rooms).hasSize(2);
168-
softly.assertThat(rooms).allMatch(room -> room.isSmokingAllowed());
168+
softly.assertThat(rooms).allMatch(Room::isSmokingAllowed);
169169
softly.assertThat(rooms).allMatch(room -> room.getStatus().equals(RoomStatus.AVAILABLE));
170170
});
171171
}

0 commit comments

Comments
 (0)