|
@@ -1,17 +1,17 @@
|
|
|
/**
|
|
|
*
|
|
|
*/
|
|
|
-package org.acegisecurity.config;
|
|
|
+package org.springframework.security.config;
|
|
|
|
|
|
import junit.framework.TestCase;
|
|
|
|
|
|
-import org.acegisecurity.providers.AuthenticationProvider;
|
|
|
-import org.acegisecurity.providers.dao.DaoAuthenticationProvider;
|
|
|
-import org.acegisecurity.providers.dao.SaltSource;
|
|
|
-import org.acegisecurity.providers.encoding.Md5PasswordEncoder;
|
|
|
-import org.acegisecurity.providers.encoding.PasswordEncoder;
|
|
|
-import org.acegisecurity.providers.encoding.PlaintextPasswordEncoder;
|
|
|
-import org.acegisecurity.userdetails.jdbc.JdbcDaoImpl;
|
|
|
+import org.springframework.security.providers.AuthenticationProvider;
|
|
|
+import org.springframework.security.providers.dao.DaoAuthenticationProvider;
|
|
|
+import org.springframework.security.providers.dao.SaltSource;
|
|
|
+import org.springframework.security.providers.encoding.Md5PasswordEncoder;
|
|
|
+import org.springframework.security.providers.encoding.PasswordEncoder;
|
|
|
+import org.springframework.security.providers.encoding.PlaintextPasswordEncoder;
|
|
|
+import org.springframework.security.userdetails.jdbc.JdbcDaoImpl;
|
|
|
import org.springframework.beans.PropertyValue;
|
|
|
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
|
|
|
import org.springframework.beans.factory.config.RuntimeBeanReference;
|
|
@@ -28,7 +28,7 @@ public class AuthenticationRepositoryParserTest extends TestCase {
|
|
|
|
|
|
public void testAuthenticationRepositoryDefaultWithAutoUserdetails() {
|
|
|
ApplicationContext context = new ClassPathXmlApplicationContext(
|
|
|
- "org/acegisecurity/config/authentication-dao-defaults.xml");
|
|
|
+ "org/springframework/security/config/authentication-dao-defaults.xml");
|
|
|
ConfigurableListableBeanFactory clbf = (ConfigurableListableBeanFactory) context
|
|
|
.getAutowireCapableBeanFactory();
|
|
|
|
|
@@ -46,7 +46,7 @@ public class AuthenticationRepositoryParserTest extends TestCase {
|
|
|
|
|
|
public void testCollaboratorsAsInnerBeans() {
|
|
|
ApplicationContext context = new ClassPathXmlApplicationContext(
|
|
|
- "org/acegisecurity/config/authentication-innerbeans.xml");
|
|
|
+ "org/springframework/security/config/authentication-innerbeans.xml");
|
|
|
ConfigurableListableBeanFactory clbf = (ConfigurableListableBeanFactory) context
|
|
|
.getAutowireCapableBeanFactory();
|
|
|
// get the main bean definition, there should be only one
|
|
@@ -75,7 +75,7 @@ public class AuthenticationRepositoryParserTest extends TestCase {
|
|
|
|
|
|
public void testCollaboratorsAsBeanRef() {
|
|
|
ApplicationContext context = new ClassPathXmlApplicationContext(
|
|
|
- "org/acegisecurity/config/authentication-beanRef-attributes.xml");
|
|
|
+ "org/springframework/security/config/authentication-beanRef-attributes.xml");
|
|
|
ConfigurableListableBeanFactory clbf = (ConfigurableListableBeanFactory) context
|
|
|
.getAutowireCapableBeanFactory();
|
|
|
// get the main bean definition, there should be only one
|
|
@@ -110,7 +110,7 @@ public class AuthenticationRepositoryParserTest extends TestCase {
|
|
|
|
|
|
public void testAutodetectionOfUserDetailsService() {
|
|
|
ApplicationContext context = new ClassPathXmlApplicationContext(
|
|
|
- "org/acegisecurity/config/authentication-defaults.xml");
|
|
|
+ "org/springframework/security/config/authentication-defaults.xml");
|
|
|
DaoAuthenticationProvider provider = (DaoAuthenticationProvider) context.getBean("authenticationRepository");
|
|
|
assertNotNull(provider.getUserDetailsService());
|
|
|
assertNull(provider.getSaltSource());
|