Package com.Server.controller
Class CarControllerTest
java.lang.Object
com.Server.controller.CarControllerTest
@SpringBootTest
class CarControllerTest
extends java.lang.Object
Test Car Controller
-
Field Summary
Fields Modifier and Type Field Description private CarControllercarControllerprivate CarServicecarServiceImplprivate LocalizationServicelocalizationServiceImplprotected org.springframework.test.web.servlet.MockMvcmockMvcprivate com.fasterxml.jackson.databind.ObjectMapperobjectMapperprivate ReservationServicereservationServiceImpl(package private) org.springframework.web.context.WebApplicationContextwebApplicationContext -
Constructor Summary
Constructors Constructor Description CarControllerTest() -
Method Summary
Modifier and Type Method Description (package private) voidgetCar()(package private) voidsetUp()(package private) voidshowCarAll()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
carServiceImpl
-
reservationServiceImpl
-
localizationServiceImpl
-
carController
-
mockMvc
protected org.springframework.test.web.servlet.MockMvc mockMvc -
webApplicationContext
@Autowired org.springframework.web.context.WebApplicationContext webApplicationContext -
objectMapper
@Autowired private com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
CarControllerTest
CarControllerTest()
-
-
Method Details
-
setUp
@BeforeEach void setUp() -
showCarAll
@Timeout(value=3L, unit=SECONDS) @Test @DisplayName("---- GET ALL CARS ----") void showCarAll() throws java.lang.Exception- Throws:
java.lang.Exception
-
getCar
@Test @DisplayName("---- GET CAR ON ID ----") void getCar() throws java.lang.Exception- Throws:
java.lang.Exception
-