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