import javax.inject.Named;
@RunWith( SpringJUnit4ClassRunner.class )
-@ContextConfiguration( locations = { "classpath*:/META-INF/spring-context.xml", "classpath*:/spring-context.xml" } )
+@ContextConfiguration( locations = { "classpath*:/META-INF/spring-context.xml", "classpath:/spring-context.xml" } )
public class LdapUserMapperTest
extends TestCase
{
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
- <bean name="userConfiguration#default" class="org.apache.archiva.redback.configuration.DefaultUserConfiguration">
+ <bean name="userConfiguration#redback" class="org.apache.archiva.redback.configuration.DefaultUserConfiguration">
<property name="configs">
<list>
<value>src/test/resources/test.properties</value>
</list>
</property>
</bean>
+
+ <alias name="userConfiguration#redback" alias="userConfiguration#default"/>
</beans>
\ No newline at end of file
* @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
* @since 2.1
*/
-@Service("userConfiguration#default")
+@Service("userConfiguration#redback")
public class DefaultUserConfiguration
implements UserConfiguration
{
<context:annotation-config />
<context:component-scan base-package="org.apache.archiva.redback.configuration"/>
- <alias name="userConfiguration#default" alias="userConfiguration#redback"/>
-
</beans>
\ No newline at end of file
<property name="password" value=""/>
</bean>
+ <alias name="userConfiguration#redback" alias="userConfiguration#default"/>
+
</beans>
\ No newline at end of file
<property name="velocityEngine" ref="velocityEngine#redback"/>
</bean>
+ <alias name="userConfiguration#redback" alias="userConfiguration#default"/>
+
</beans>
\ No newline at end of file
</bean>
+ <alias name="userConfiguration#redback" alias="userConfiguration#default"/>
+
</beans>
\ No newline at end of file
-->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
- http://www.springframework.org/schema/context
- http://www.springframework.org/schema/context/spring-context-3.0.xsd"
+ http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"
default-lazy-init="true">
<bean name="userManager#cached" class="org.apache.archiva.redback.users.cached.CachedUserManager">
<property name="timeToIdleSeconds" value="1800"/>
<property name="timeToLiveSeconds" value="14400"/>
</bean>
+
+
+ <alias name="userConfiguration#redback" alias="userConfiguration#default"/>
</beans>
\ No newline at end of file
-->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
- http://www.springframework.org/schema/context
- http://www.springframework.org/schema/context/spring-context-3.0.xsd"
+ http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"
default-lazy-init="true">
<bean name="authenticator#user-manager" class="org.apache.archiva.redback.authentication.users.UserManagerAuthenticator">
<alias name="userManager#memory" alias="userManager#jdo"/>
+ <alias name="userConfiguration#redback" alias="userConfiguration#default"/>
+
</beans>
\ No newline at end of file
<property name="timeToLiveSeconds" value="14400"/>
</bean>
+ <alias name="userConfiguration#redback" alias="userConfiguration#default"/>
</beans>
\ No newline at end of file
*/
@RunWith( SpringJUnit4ClassRunner.class )
-@ContextConfiguration( locations = { "classpath*:/META-INF/spring-context.xml", "classpath*:/spring-context.xml" } )
+@ContextConfiguration( locations = { "classpath*:/META-INF/spring-context.xml", "classpath:/spring-context.xml" } )
public class LdapUserManagerTest
extends TestCase
{
* @version
*/
@RunWith( SpringJUnit4ClassRunner.class )
-@ContextConfiguration( locations = { "classpath*:/META-INF/spring-context.xml", "classpath*:/spring-context.xml" } )
+@ContextConfiguration( locations = { "classpath*:/META-INF/spring-context.xml", "classpath:/spring-context.xml" } )
public class LdapCacheServiceTest
extends TestCase
{
<property name="userObjectClass" value="inetOrgPerson"/>
<property name="userConf" ref="userConfiguration#default"/>
</bean>
+ <alias name="userConfiguration#redback" alias="userConfiguration#default"/>
</beans>
\ No newline at end of file