Author: rwatler
Date: Sun Jul 24 22:00:55 2005
New Revision: 224691
URL: http://svn.apache.org/viewcvs?rev=224691&view=rev
Log:
port sso spring tests to test repository datasource config
Modified:
portals/jetspeed-2/trunk/components/sso/project.xml
portals/jetspeed-2/trunk/components/sso/src/test/org/apache/jetspeed/sso/TestSSOComponent.java
Modified: portals/jetspeed-2/trunk/components/sso/project.xml
URL:
http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/sso/project.xml?rev=224691&r1=224690&r2=224691&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/sso/project.xml (original)
+++ portals/jetspeed-2/trunk/components/sso/project.xml Sun Jul 24 22:00:55 2005
@@ -86,4 +86,30 @@
</dependencies>
+ <build>
+ <unitTestSourceDirectory>${basedir}/src/test</unitTestSourceDirectory>
+ <unitTest>
+ <resources>
+ <resource>
+ <directory>${basedir}/src/test</directory>
+ <excludes>
+ <exclude>**/*.java</exclude>
+ </excludes>
+ </resource>
+ <resource>
+ <directory>${basedir}/src/java</directory>
+ <excludes>
+ <exclude>**/*.java</exclude>
+ </excludes>
+ </resource>
+ <resource>
+ <directory>${basedir}/../../etc/log4j</directory>
+ </resource>
+ <resource>
+ <directory>${basedir}/../../etc/db-ojb</directory>
+ </resource>
+ </resources>
+ </unitTest>
+ </build>
+
</project>
Modified:
portals/jetspeed-2/trunk/components/sso/src/test/org/apache/jetspeed/sso/TestSSOComponent.java
URL:
http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/sso/src/test/org/apache/jetspeed/sso/TestSSOComponent.java?rev=224691&r1=224690&r2=224691&view=diff
==============================================================================
---
portals/jetspeed-2/trunk/components/sso/src/test/org/apache/jetspeed/sso/TestSSOComponent.java
(original)
+++
portals/jetspeed-2/trunk/components/sso/src/test/org/apache/jetspeed/sso/TestSSOComponent.java
Sun Jul 24 22:00:55 2005
@@ -32,12 +32,10 @@
import java.util.Iterator;
import java.util.Set;
-
import org.apache.jetspeed.sso.SSOException;
import java.lang.Exception;
-import org.apache.jetspeed.components.util.DatasourceEnabledSpringTestCase;
-
+import org.apache.jetspeed.components.test.AbstractSpringTestCase;
/**
* <p>
@@ -46,7 +44,7 @@
*
* @author <a href="[EMAIL PROTECTED]">Roger Ruttimann </a>
*/
-public class TestSSOComponent extends DatasourceEnabledSpringTestCase
+public class TestSSOComponent extends AbstractSpringTestCase
{
/**
* test url for this UnitTest
@@ -390,4 +388,10 @@
return new String[]
{ "META-INF/sso-dao.xml", "META-INF/transaction.xml"};
}
-}
\ No newline at end of file
+
+ protected String[] getBootConfigurations()
+ {
+ return new String[]
+ { "test-repository-datasource-spring.xml" };
+ }
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]