mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-09-08 20:51:41 +00:00
Minor itest updates
This commit is contained in:
parent
3e6054b69f
commit
68364f06a2
@ -4,7 +4,7 @@
|
|||||||
xmlns:beans="http://www.springframework.org/schema/beans"
|
xmlns:beans="http://www.springframework.org/schema/beans"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
|
||||||
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.2.xsd">
|
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd">
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Http App Context to test form login, remember-me and concurrent session control.
|
Http App Context to test form login, remember-me and concurrent session control.
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
xmlns:beans="http://www.springframework.org/schema/beans"
|
xmlns:beans="http://www.springframework.org/schema/beans"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
|
||||||
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.2.xsd">
|
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd">
|
||||||
|
|
||||||
<authentication-provider>
|
<authentication-provider>
|
||||||
<user-service>
|
<user-service>
|
||||||
|
@ -17,6 +17,11 @@ import org.testng.annotations.*;
|
|||||||
import com.meterware.httpunit.WebConversation;
|
import com.meterware.httpunit.WebConversation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Base class which allows the application to be started with a particular Spring application
|
||||||
|
* context. Subclasses override the <tt>getContextConfigLocations</tt> method to return
|
||||||
|
* a list of context file names which is passed to the <tt>ContextLoaderListener</tt> when
|
||||||
|
* starting up the webapp.
|
||||||
|
*
|
||||||
* @author Luke Taylor
|
* @author Luke Taylor
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
@ -51,7 +56,7 @@ public abstract class AbstractWebServerIntegrationTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
protected WebAppContext createWebContext() {
|
private WebAppContext createWebContext() {
|
||||||
WebAppContext webCtx = new WebAppContext("src/main/webapp", getContextPath());
|
WebAppContext webCtx = new WebAppContext("src/main/webapp", getContextPath());
|
||||||
|
|
||||||
if (StringUtils.hasText(getContextConfigLocations())) {
|
if (StringUtils.hasText(getContextConfigLocations())) {
|
||||||
@ -117,8 +122,6 @@ public abstract class AbstractWebServerIntegrationTests {
|
|||||||
tester.assertTextPresent(text);
|
tester.assertTextPresent(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Security-specific utility methods
|
// Security-specific utility methods
|
||||||
|
|
||||||
protected void login(String username, String password) {
|
protected void login(String username, String password) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user