notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
svn commit: r2706 - development/main/transit/core/handler/src/test/net/dpml/transit/test
- From: mcconnell AT dpml.net
- To: notify-dpml AT lists.ibiblio.org
- Subject: svn commit: r2706 - development/main/transit/core/handler/src/test/net/dpml/transit/test
- Date: Sun, 05 Jun 2005 02:28:06 -0400
Author: mcconnell AT dpml.net
Date: Sun Jun 5 02:28:05 2005
New Revision: 2706
Modified:
development/main/transit/core/handler/src/test/net/dpml/transit/test/OnlineTestCase.java
Log:
for pete
Modified:
development/main/transit/core/handler/src/test/net/dpml/transit/test/OnlineTestCase.java
==============================================================================
---
development/main/transit/core/handler/src/test/net/dpml/transit/test/OnlineTestCase.java
(original)
+++
development/main/transit/core/handler/src/test/net/dpml/transit/test/OnlineTestCase.java
Sun Jun 5 02:28:05 2005
@@ -19,15 +19,22 @@
package net.dpml.transit.test;
+import java.io.File;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLClassLoader;
+import java.util.prefs.Preferences;
+import java.util.logging.Logger;
import junit.framework.TestCase;
+import net.dpml.transit.Transit;
+import net.dpml.transit.management.TransitManager;
+import net.dpml.transit.builder.TransitHelper;
+
/**
* URL Handler TestCase for Offline operations.
*
@@ -36,10 +43,17 @@
*/
public class OnlineTestCase extends TestCase
{
+ private static Transit TRANSIT = null;
+
protected void setUp() throws Exception
{
- System.setProperty( "java.protocol.handler.pkgs", "net.dpml.transit"
);
- System.setProperty( "java.util.logging.config.class",
"net.dpml.transit.util.ConfigurationHandler" );
+ if( null == TRANSIT )
+ {
+ Preferences prefs =
+ Preferences.userNodeForPackage( Transit.class
).node("test").node( "online-test" );
+ TransitManager manager = TransitHelper.createTransitManager(
prefs );
+ TRANSIT = Transit.getInstance( manager );
+ }
}
public void testStackedJarUrl() throws Exception
- svn commit: r2706 - development/main/transit/core/handler/src/test/net/dpml/transit/test, mcconnell, 06/04/2005
Archive powered by MHonArc 2.6.24.