File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
src/test/java/org/soujava/demos/mongodb/document Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change 1313import org .jboss .weld .junit5 .auto .EnableAutoWeld ;
1414import org .junit .jupiter .api .Test ;
1515
16- import java .util .UUID ;
1716
1817@ EnableAutoWeld
1918@ AddPackages (value = {Database .class , EntityConverter .class , DocumentTemplate .class })
@@ -30,19 +29,9 @@ class RoomServiceTest {
3029
3130 @ Test
3231 void shouldSaveRoom () {
32+ var room = RoomFaker .getRoom ();
3333 service .newRoom (room );
3434 }
3535
3636
37-
38- private static Room getRoom () {
39- return Room .builder ()
40- .id (UUID .randomUUID ().toString ())
41- .roomNumber (FAKER .number ().numberBetween (100 , 999 ))
42- .type (randomEnum (RoomType .class ))
43- .status (randomEnum (RoomStatus .class ))
44- .cleanStatus (randomEnum (CleanStatus .class ))
45- .smokingAllowed (FAKER .bool ().bool ())
46- .build ();
47- }
4837}
You can’t perform that action at this time.
0 commit comments