Property files are now being read by the property component
[utils] / security / src / test / java / org / wamblee / security / authorization / hibernate / PersistentAuthorizationServiceTest.java
index 04ca2d37a2ddb8d70869ee5d8bc8658076fdc636..af99ed8392d758d5a1d9b27b0bb45de8d8498917 100644 (file)
@@ -30,7 +30,8 @@ import org.wamblee.system.core.Scope;
 import org.wamblee.system.spring.component.DatabaseTesterComponent;
 import org.wamblee.usermgt.UserAccessor;
 import org.wamblee.usermgt.hibernate.AuthorizationComponent;
-import org.wamblee.usermgt.hibernate.ExternalDatasourceComponent;
+import org.wamblee.usermgt.hibernate.DatabaseComponentFactory;
+import org.wamblee.usermgt.hibernate.DatasourceComponent;
 import org.wamblee.usermgt.hibernate.HibernateUserAdministrationTest;
 import org.wamblee.usermgt.hibernate.UserAdministrationComponent;
 
@@ -64,7 +65,8 @@ public class PersistentAuthorizationServiceTest extends
     protected void setUp() throws Exception {
 
         _container = new DefaultContainer("top");
-        _container.addComponent(new ExternalDatasourceComponent("datasource"));
+        DatabaseComponentFactory.addDatabaseConfig(_container);
+        _container.addComponent(new DatasourceComponent("datasource"));
         _container.addComponent("userAccessor", TestUserAccessor.class);
         _container.addComponent(new AuthorizationComponent("authorization",
                 true));