|
|
|
@ -20,7 +20,6 @@ import org.junit.Test;
|
|
|
|
|
import org.junit.runner.RunWith;
|
|
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionEvaluationReport;
|
|
|
|
|
import org.springframework.boot.test.autoconfigure.web.servlet.MockMvcSecurityAutoConfiguration;
|
|
|
|
|
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
|
|
|
|
|
import org.springframework.http.HttpHeaders;
|
|
|
|
@ -46,9 +45,6 @@ public class MockMvcSecurityAutoConfigurationIntegrationTests {
|
|
|
|
|
@Autowired
|
|
|
|
|
MockMvc mockMvc;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
ConditionEvaluationReport conditionEvaluationReport;
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
@WithMockUser(username = "test", password = "test", roles = "USER")
|
|
|
|
|
public void okResponseWithMockUser() throws Exception {
|
|
|
|
|