Hello everyone,
I have few questions about project fineract-cn-customer. I want to add
integration tests in project. I use MockMVC for testing.
For example,
mockMvc.perform(MockMvcRequestBuilders.post("/customers")
.header("X-Tenant-Identifier", "TENANT")
.contentType(MediaType.APPLICATION_JSON_VALUE)
.content(objectMapper.writeValueAsString(CustomerGenerator.createRandomCustomer())))
.andDo(MockMvcResultHandlers.print())
.andExpect(MockMvcResultMatchers.status().isAccepted());
I get 404 instead 202. Can anyone tell me what my mistake is?
--
Andrey Mochalov