Wpis z mikrobloga

@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