|
|
|
|
@ -32,6 +32,7 @@ import org.junit.runner.RunWith;
@@ -32,6 +32,7 @@ import org.junit.runner.RunWith;
|
|
|
|
|
import org.mockito.ArgumentCaptor; |
|
|
|
|
import org.mockito.Captor; |
|
|
|
|
import org.mockito.Mock; |
|
|
|
|
import org.powermock.core.classloader.annotations.PowerMockIgnore; |
|
|
|
|
import org.powermock.core.classloader.annotations.PrepareOnlyThisForTest; |
|
|
|
|
import org.powermock.modules.junit4.PowerMockRunner; |
|
|
|
|
import org.springframework.mock.web.MockHttpServletRequest; |
|
|
|
|
@ -42,6 +43,7 @@ import org.springframework.security.web.context.SecurityContextRepository;
@@ -42,6 +43,7 @@ import org.springframework.security.web.context.SecurityContextRepository;
|
|
|
|
|
|
|
|
|
|
@RunWith(PowerMockRunner.class) |
|
|
|
|
@PrepareOnlyThisForTest(WebTestUtils.class) |
|
|
|
|
@PowerMockIgnore({"javax.security.auth.*", "org.w3c.dom.*", "org.xml.sax.*", "org.apache.xerces.*", "javax.xml.parsers.*"}) |
|
|
|
|
public class SecurityMockMvcRequestPostProcessorsSecurityContextTests { |
|
|
|
|
@Captor |
|
|
|
|
private ArgumentCaptor<SecurityContext> contextCaptor; |
|
|
|
|
|