@Smevios: Już mam, w Junit5 powinno być @ExtendWith(SpringExtension.class) Ale za to mam inny dziwny problem, jak robię takiego posta
mvc.perform(post("/api/user/register") .contentType(MediaType.APPLICATION_JSON) .content(userJson)) .andExpect(status().isOk()); to wywala 403 forbidden, a w security mam .permitAll
#java #spring #testowanieoprogramowania #junit
Ale za to mam inny dziwny problem, jak robię takiego posta
mvc.perform(post("/api/user/register")
.contentType(MediaType.APPLICATION_JSON)
.content(userJson))
.andExpect(status().isOk());
to wywala 403 forbidden, a w security mam .permitAll