notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
svn commit: r2317 - development/main/metro/unit/src/main/net/dpml/metro/unit
- From: peter AT neubauer.se
- To: notify-dpml AT lists.ibiblio.org
- Subject: svn commit: r2317 - development/main/metro/unit/src/main/net/dpml/metro/unit
- Date: Mon, 18 Apr 2005 20:44:59 -0400
Author: peter AT neubauer.se
Date: Mon Apr 18 20:44:55 2005
New Revision: 2317
Modified:
development/main/metro/unit/src/main/net/dpml/metro/unit/CompositionTestCase.java
development/main/metro/unit/src/main/net/dpml/metro/unit/TestContext.java
development/main/metro/unit/src/main/net/dpml/metro/unit/TestLogger.java
Log:
Fixing TestContext to run from within the IDE
Modified:
development/main/metro/unit/src/main/net/dpml/metro/unit/CompositionTestCase.java
==============================================================================
---
development/main/metro/unit/src/main/net/dpml/metro/unit/CompositionTestCase.java
(original)
+++
development/main/metro/unit/src/main/net/dpml/metro/unit/CompositionTestCase.java
Mon Apr 18 20:44:55 2005
@@ -20,27 +20,18 @@
import java.io.File;
import java.io.IOException;
-
import java.net.URI;
import java.net.URL;
-
import java.util.HashMap;
import java.util.Hashtable;
import java.util.Map;
import junit.framework.TestCase;
-
import net.dpml.composition.model.ContainmentModel;
-
import net.dpml.exception.ExceptionHelper;
-
import net.dpml.system.Factory;
import net.dpml.system.SystemContext;
-
import net.dpml.transit.artifact.Artifact;
-
-import net.dpml.transit.monitors.Monitor;
-
import net.dpml.transit.repository.Repository;
import net.dpml.transit.repository.StandardLoader;
Modified:
development/main/metro/unit/src/main/net/dpml/metro/unit/TestContext.java
==============================================================================
--- development/main/metro/unit/src/main/net/dpml/metro/unit/TestContext.java
(original)
+++ development/main/metro/unit/src/main/net/dpml/metro/unit/TestContext.java
Mon Apr 18 20:44:55 2005
@@ -19,13 +19,10 @@
package net.dpml.metro.unit;
import java.io.File;
-
import java.util.Iterator;
import java.util.Map;
-import net.dpml.context.ContextException;
import net.dpml.context.impl.DefaultContext;
-
import net.dpml.meta.info.ContextDescriptor;
/** A Context class that can be used for simple Unittesting.
@@ -47,6 +44,10 @@
put( ContextDescriptor.PARTITION_KEY, partition );
String dir = System.getProperty( "project.dir" );
+ if (null == dir)
+ {
+ dir = ".";
+ }
File homedir = new File( dir );
put( ContextDescriptor.DIR_KEY, homedir );
Modified:
development/main/metro/unit/src/main/net/dpml/metro/unit/TestLogger.java
==============================================================================
--- development/main/metro/unit/src/main/net/dpml/metro/unit/TestLogger.java
(original)
+++ development/main/metro/unit/src/main/net/dpml/metro/unit/TestLogger.java
Mon Apr 18 20:44:55 2005
@@ -20,10 +20,6 @@
package net.dpml.metro.unit;
import java.io.PrintStream;
-import java.util.Map;
-
-import net.dpml.context.ContextException;
-import net.dpml.context.impl.DefaultContext;
import net.dpml.logging.Logger;
- svn commit: r2317 - development/main/metro/unit/src/main/net/dpml/metro/unit, peter, 04/18/2005
Archive powered by MHonArc 2.6.24.