Skip to content

Commit 0ce2877

Browse files
committed
chore: replace custom method by datafaker
1 parent 00b3430 commit 0ce2877

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/eliasnogueira/data/dynamic/BookingDataFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static Booking createBookingData() {
4949
password(faker.internet().password()).
5050
dailyBudget(returnDailyBudget()).
5151
newsletter(faker.bool().bool()).
52-
roomType(RoomType.getRandom()).
52+
roomType(faker.options().option(RoomType.class)).
5353
roomDescription(faker.lorem().paragraph()).
5454
build();
5555

0 commit comments

Comments
 (0)