@@ -0,0 +1,1329 @@
+package io.crowdcode.flaschenlager.user.controller;%0A%0Aimport io.crowdcode.flaschenlager.user.repository.UserRepository;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;%0Aimport org.springframework.boot.test.mock.mockito.MockBean;%0Aimport org.springframework.http.MediaType;%0Aimport org.springframework.test.context.junit4.SpringRunner;%0Aimport org.springframework.test.web.servlet.MockMvc;%0Aimport org.springframework.test.web.servlet.request.MockMvcRequestBuilders;%0A%0Aimport static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;%0A%0A@RunWith(SpringRunner.class)%0A@WebMvcTest(UserController.class)%0Apublic class UserControllerTest %7B%0A%0A    public static final String USER_JSON = %22%7B  %5C%22email%5C%22: %5C%22email_value%5C%22,  %5C%22name%5C%22: %5C%22name_value%5C%22,  %5C%22password%5C%22: %5C%22password_value%5C%22%7D%22;%0A%0A    @Autowired%0A    private MockMvc mvc;%0A%0A    @MockBean%0A    private UserRepository userRepository;%0A%0A%0A    @Test%0A    public void testCreateCustomer() throws Exception %7B%0A        mvc.perform(MockMvcRequestBuilders.post(%22/user%22).content(USER_JSON)%0A                .contentType(MediaType.APPLICATION_JSON)%0A                .accept(MediaType.APPLICATION_JSON)).andExpect(status().isCreated());%0A%0A    %7D%0A%0A%0A%7D

add create user controller test