You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by dl...@apache.org on 2004/09/18 21:32:34 UTC
cvs commit: jakarta-jetspeed-2/components/rdbms/src/java/org/apache/jetspeed/components/util DatasourceTestCase.java
dlestrat 2004/09/18 12:32:34
Modified: components/rdbms/src/java/org/apache/jetspeed/components/util
DatasourceTestCase.java
Log:
Formatting.
Revision Changes Path
1.4 +15 -12 jakarta-jetspeed-2/components/rdbms/src/java/org/apache/jetspeed/components/util/DatasourceTestCase.java
Index: DatasourceTestCase.java
===================================================================
RCS file: /home/cvs/jakarta-jetspeed-2/components/rdbms/src/java/org/apache/jetspeed/components/util/DatasourceTestCase.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- DatasourceTestCase.java 27 May 2004 19:38:09 -0000 1.3
+++ DatasourceTestCase.java 18 Sep 2004 19:32:34 -0000 1.4
@@ -23,16 +23,18 @@
import org.apache.jetspeed.components.jndi.TyrexJNDIComponent;
/**
- * @author <a href="mailto:sweaver@einnovation.com">Scott T. Weaver</a>
- *
+ * @author <a href="mailto:sweaver@einnovation.com">Scott T. Weaver </a>
+ *
*/
public class DatasourceTestCase extends TestCase
{
protected BoundDBCPDatasourceComponent datasourceComponent;
+
protected JNDIComponent jndi;
+
/**
- *
+ *
*/
public DatasourceTestCase()
{
@@ -43,29 +45,30 @@
/**
* @param arg0
*/
- public DatasourceTestCase( String arg0 )
+ public DatasourceTestCase(String arg0)
{
super(arg0);
// TODO Auto-generated constructor stub
}
-
- /* (non-Javadoc)
+ /**
* @see junit.framework.TestCase#setUp()
*/
protected void setUp() throws Exception
- {
+ {
super.setUp();
jndi = new TyrexJNDIComponent();
String url = System.getProperty("org.apache.jetspeed.database.url");
String driver = System.getProperty("org.apache.jetspeed.database.driver");
String user = System.getProperty("org.apache.jetspeed.database.user");
String password = System.getProperty("org.apache.jetspeed.database.password");
- datasourceComponent = new BoundDBCPDatasourceComponent(user, password, driver, url, 20, 5000, GenericObjectPool.WHEN_EXHAUSTED_GROW, true, "jetspeed", jndi );
+ datasourceComponent = new BoundDBCPDatasourceComponent(user, password, driver, url, 20, 5000,
+ GenericObjectPool.WHEN_EXHAUSTED_GROW, true, "jetspeed", jndi);
datasourceComponent.start();
-
+
}
- /* (non-Javadoc)
+
+ /**
* @see junit.framework.TestCase#tearDown()
*/
protected void tearDown() throws Exception
@@ -73,5 +76,5 @@
jndi.unbindFromCurrentThread();
super.tearDown();
}
-
-}
+
+}
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org