@ -29,6 +29,7 @@ import org.junit.Before;
@@ -29,6 +29,7 @@ import org.junit.Before;
import org.junit.Test ;
import org.junit.runner.RunWith ;
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 ;
@ -39,6 +40,7 @@ import org.springframework.security.web.context.SecurityContextRepository;
@@ -39,6 +40,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 SecurityMockMvcRequestPostProcessorsTestSecurityContextTests {
@Mock
private SecurityContext context ;
@ -81,4 +83,4 @@ public class SecurityMockMvcRequestPostProcessorsTestSecurityContextTests {
@@ -81,4 +83,4 @@ public class SecurityMockMvcRequestPostProcessorsTestSecurityContextTests {
spy ( WebTestUtils . class ) ;
when ( WebTestUtils . getSecurityContextRepository ( request ) ) . thenReturn ( repository ) ;
}
}
}