- Sample01NoSpringContextTest
Unit Test without Spring Boots
- Sample02ControllerSampleTest
Without modification, thev service will invoke the real methods in RoomService.clas
And the real bean will return 16
- Sample03MockMvcTest
Use SpringBootTest
to initialize the context.