Added test file for CustomAuthenticationProviderBeanDefinitionDecorator

This commit is contained in:
Luke Taylor 2008-03-11 13:50:53 +00:00
parent 02f955fe52
commit ed08ba10ba
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
package org.springframework.security.config;
import org.junit.Test;
import org.springframework.security.util.InMemoryXmlApplicationContext;
public class CustomAuthenticationProviderBeanDefinitionDecoratorTests {
@Test
public void decoratorParsesSuccessfully() {
InMemoryXmlApplicationContext ctx = new InMemoryXmlApplicationContext(
"<b:bean id='someBean' class='org.springframework.security.config.TestBusinessBeanImpl'>" +
" <intercept-methods>" +
" <protect method='org.springframework.security.config.TestBusinessBean.*' access='ROLE_A' />" +
" </intercept-methods>" +
"</b:bean>" + HttpSecurityBeanDefinitionParserTests.AUTH_PROVIDER_XML
);
ctx.getBean("someBean");
}
}