We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package org.molgenis.armadillo; import org.junit.jupiter.api.Test; import org.molgenis.armadillo.controller.ArmadilloControllerTestBase; import org.molgenis.armadillo.controller.CurrentUserController; import org.molgenis.armadillo.storage.ArmadilloStorageService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; import org.springframework.boot.test.mock.mockito.MockBean; import org.springframework.context.annotation.Import; import org.springframework.security.test.context.support.WithMockUser; import org.springframework.test.web.servlet.MockMvc; import org.springframework.test.web.servlet.request.MockMvcRequestBuilders; import org.springframework.test.web.servlet.result.MockMvcResultMatchers; @WebMvcTest(CurrentUserController.class) @Import({TestSecurityConfig.class}) public class ActuatorEndpointTest extends ArmadilloControllerTestBase { @MockBean ArmadilloStorageService armadilloStorage; @Autowired private MockMvc mockMvc; @Test @WithMockUser(roles = "SU") public void testActuatorEndpoint() throws Exception { mockMvc.perform(MockMvcRequestBuilders.get("/actuator")) .andExpect(MockMvcResultMatchers.status().isOk()); } }
The text was updated successfully, but these errors were encountered:
Tell me more. I want to contribute
Sorry, something went wrong.
clemens-tolboom
No branches or pull requests
The text was updated successfully, but these errors were encountered: