Removed SpringTestCase and SpringConfigFiles and subclasses.
authorerik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Wed, 14 May 2008 19:23:42 +0000 (19:23 +0000)
committererik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Wed, 14 May 2008 19:23:42 +0000 (19:23 +0000)
security/src/test/java/org/wamblee/security/authorization/AuthorizationServiceTest.java
security/src/test/java/org/wamblee/security/authorization/hibernate/AuthorizationSpringConfigFiles.java [deleted file]
security/src/test/java/org/wamblee/usermgt/InMemoryGroupSetTest.java
security/src/test/java/org/wamblee/usermgt/InMemoryUserSetTest.java
security/src/test/java/org/wamblee/usermgt/UserAdministrationImplTest.java
security/src/test/java/org/wamblee/usermgt/UsermgtSpringConfigFiles.java [deleted file]
security/src/test/java/org/wamblee/usermgt/hibernate/HibernateUserAdministrationTest.java
security/src/test/java/org/wamblee/usermgt/hibernate/HibernateUserSetTest.java

index 502000e61a5b4a3b15323a96e65dd1eb11615b73..151dbd7e631479b11d5162bc607c769afa92f4e7 100644 (file)
@@ -20,9 +20,6 @@ import static org.wamblee.security.authorization.AuthorizationResult.DENIED;
 import static org.wamblee.security.authorization.AuthorizationResult.GRANTED;
 import junit.framework.TestCase;
 
 import static org.wamblee.security.authorization.AuthorizationResult.GRANTED;
 import junit.framework.TestCase;
 
-import org.wamblee.persistence.hibernate.HibernateMappingFiles;
-import org.wamblee.test.spring.SpringTestCase;
-import org.wamblee.test.spring.SpringConfigFiles;
 import org.wamblee.usermgt.UserAccessor;
 
 /**
 import org.wamblee.usermgt.UserAccessor;
 
 /**
diff --git a/security/src/test/java/org/wamblee/security/authorization/hibernate/AuthorizationSpringConfigFiles.java b/security/src/test/java/org/wamblee/security/authorization/hibernate/AuthorizationSpringConfigFiles.java
deleted file mode 100644 (file)
index 5026cfd..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright 2005 the original author or authors.
- * 
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */ 
-
-package org.wamblee.security.authorization.hibernate;
-
-import org.wamblee.usermgt.UsermgtSpringConfigFiles;
-
-/**
- * 
- *
- * @author Erik Brakkee
- */
-public class AuthorizationSpringConfigFiles extends UsermgtSpringConfigFiles {
-    
-    public AuthorizationSpringConfigFiles() { 
-        super(new String[] {
-                "spring/test.org.wamblee.security.useraccessor.xml",
-                "spring/test.org.wamblee.security.authorization.xml" });
-    }
-
-}
index 3fe6c5a87e1761b722de2b113fb516e2c84790ed..2ea119058425fee83056b9b924d35c96f7e28eeb 100644 (file)
@@ -21,10 +21,6 @@ import java.util.Set;
 
 import junit.framework.TestCase;
 
 
 import junit.framework.TestCase;
 
-import org.wamblee.persistence.hibernate.HibernateMappingFiles;
-import org.wamblee.test.spring.SpringTestCase;
-import org.wamblee.test.spring.SpringConfigFiles;
-
 /**
  * Tests the inmemory group set. Intended to be subclassed for other
  * implementations of group set. 
 /**
  * Tests the inmemory group set. Intended to be subclassed for other
  * implementations of group set. 
index e41a318c1fccd027048cff454cca2d5503bae872..8d60d433ed21270f990403b17d1366ecbae3e2bd 100644 (file)
@@ -21,10 +21,7 @@ import java.util.Set;
 
 import junit.framework.TestCase;
 
 
 import junit.framework.TestCase;
 
-import org.wamblee.persistence.hibernate.HibernateMappingFiles;
 import org.wamblee.security.encryption.Md5HexMessageDigester;
 import org.wamblee.security.encryption.Md5HexMessageDigester;
-import org.wamblee.test.spring.SpringTestCase;
-import org.wamblee.test.spring.SpringConfigFiles;
 import org.wamblee.usermgt.UserMgtException.Reason;
 
 /**
 import org.wamblee.usermgt.UserMgtException.Reason;
 
 /**
index 4ca03fb676f51eb32f9246e866baa52f89117446..055828d6e09fb4802fdcdde1b9f32e5711da6fc6 100644 (file)
@@ -21,10 +21,7 @@ import java.util.Set;
 import junit.framework.TestCase;
 
 import org.apache.log4j.Logger;
 import junit.framework.TestCase;
 
 import org.apache.log4j.Logger;
-import org.wamblee.persistence.hibernate.HibernateMappingFiles;
 import org.wamblee.security.encryption.Md5HexMessageDigester;
 import org.wamblee.security.encryption.Md5HexMessageDigester;
-import org.wamblee.test.spring.SpringConfigFiles;
-import org.wamblee.test.spring.SpringTestCase;
 import org.wamblee.usermgt.UserMgtException.Reason;
 
 /**
 import org.wamblee.usermgt.UserMgtException.Reason;
 
 /**
diff --git a/security/src/test/java/org/wamblee/usermgt/UsermgtSpringConfigFiles.java b/security/src/test/java/org/wamblee/usermgt/UsermgtSpringConfigFiles.java
deleted file mode 100644 (file)
index c07a5b7..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2005 the original author or authors.
- * 
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.wamblee.usermgt;
-
-import java.util.Collections;
-
-import org.wamblee.test.spring.SpringConfigFiles;
-
-/**
- * Spring config files for user management.
- *
- * @author Erik Brakkee
- */
-public class UsermgtSpringConfigFiles extends SpringConfigFiles {
-
-    public UsermgtSpringConfigFiles() {
-        super(new String[] { "spring/test.org.wamblee.security.properties.xml",
-                "spring/test.org.wamblee.security.datasource.xml",
-                "spring/test.org.wamblee.security.database.xml",
-                "spring/test.org.wamblee.security.usermgt-repositories.xml",
-                "spring/test.org.wamblee.security.usermgt.xml" });
-    }
-    
-    public UsermgtSpringConfigFiles(String[] aFiles) { 
-        this(); 
-        Collections.addAll(this, aFiles);
-    }
-}
index 6480e77fe2d8506774f249a3a4a5d19cc97ec36b..90a5cc9c5663244cb8c4a6e7b067febf03010fba 100644 (file)
@@ -22,9 +22,7 @@ import java.sql.SQLException;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.wamblee.cache.Cache;
 import org.wamblee.cache.EhCache;
 import org.wamblee.cache.EhCache;
-import org.wamblee.general.BeanKernel;
 import org.wamblee.system.adapters.DefaultContainer;
 import org.wamblee.system.adapters.ObjectConfiguration;
 import org.wamblee.system.core.Scope;
 import org.wamblee.system.adapters.DefaultContainer;
 import org.wamblee.system.adapters.ObjectConfiguration;
 import org.wamblee.system.core.Scope;
@@ -32,7 +30,6 @@ import org.wamblee.system.spring.DatabaseTesterComponent;
 import org.wamblee.test.spring.TestTransactionCallbackWithoutResult;
 import org.wamblee.usermgt.UserAdministration;
 import org.wamblee.usermgt.UserAdministrationImplTest;
 import org.wamblee.test.spring.TestTransactionCallbackWithoutResult;
 import org.wamblee.usermgt.UserAdministration;
 import org.wamblee.usermgt.UserAdministrationImplTest;
-import org.wamblee.usermgt.UsermgtSpringConfigFiles;
 
 /**
  * User administration tests with persistence based on Hibernate. This executes
 
 /**
  * User administration tests with persistence based on Hibernate. This executes
index 3d6f8c54d99a52f74db6ec84f1a9d31b21d68fa2..119b5fcd5ccadb098209c30e7b56eec191024a5f 100644 (file)
@@ -21,11 +21,7 @@ import java.sql.ResultSet;
 import java.sql.SQLException;
 import java.util.Set;
 
 import java.sql.SQLException;
 import java.util.Set;
 
-import javax.sql.DataSource;
-
-import org.wamblee.cache.Cache;
 import org.wamblee.cache.EhCache;
 import org.wamblee.cache.EhCache;
-import org.wamblee.general.BeanKernel;
 import org.wamblee.system.adapters.DefaultContainer;
 import org.wamblee.system.adapters.ObjectConfiguration;
 import org.wamblee.system.core.Scope;
 import org.wamblee.system.adapters.DefaultContainer;
 import org.wamblee.system.adapters.ObjectConfiguration;
 import org.wamblee.system.core.Scope;
@@ -36,7 +32,6 @@ import org.wamblee.usermgt.InMemoryUserSetTest;
 import org.wamblee.usermgt.User;
 import org.wamblee.usermgt.UserMgtException;
 import org.wamblee.usermgt.UserSet;
 import org.wamblee.usermgt.User;
 import org.wamblee.usermgt.UserMgtException;
 import org.wamblee.usermgt.UserSet;
-import org.wamblee.usermgt.UsermgtSpringConfigFiles;
 
 /**
  * Tests for {@link org.wamblee.usermgt.hibernate.HibernateGroupSet}
 
 /**
  * Tests for {@link org.wamblee.usermgt.hibernate.HibernateGroupSet}