incubator-depot-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nickcha...@apache.org
Subject svn commit: rev 6868 - incubator/depot/trunk/ruper/src/test/ant/org/apache/ruper/ant/sandbox/chalko
Date Thu, 26 Feb 2004 08:33:02 GMT
Author: nickchalko
Date: Thu Feb 26 00:33:01 2004
New Revision: 6868

Modified:
   incubator/depot/trunk/ruper/src/test/ant/org/apache/ruper/ant/sandbox/chalko/RuperSetTaskTest.java
Log:
The test now look for the actuall file in the result.
And fails of course.

Modified: incubator/depot/trunk/ruper/src/test/ant/org/apache/ruper/ant/sandbox/chalko/RuperSetTaskTest.java
==============================================================================
--- incubator/depot/trunk/ruper/src/test/ant/org/apache/ruper/ant/sandbox/chalko/RuperSetTaskTest.java
(original)
+++ incubator/depot/trunk/ruper/src/test/ant/org/apache/ruper/ant/sandbox/chalko/RuperSetTaskTest.java
Thu Feb 26 00:33:01 2004
@@ -14,40 +14,31 @@
  * limitations under the License.
  * ========================================================================
  */
-
 package org.apache.ruper.ant.sandbox.chalko;
-
+import java.io.File;
 import org.apache.tools.ant.BuildFileTest;
-
 /**
- * 
  * @author $Author: arb_jack $
  * @version $Revision: 1.2 $
  */
 public class RuperSetTaskTest extends BuildFileTest {
-
-    /**
-     * Constructor for RuperDependTaskTest.
-     * @param arg0
-     */
-    public RuperSetTaskTest(String arg0) {
-        super(arg0); 
-    }
-
-    public static void main(String[] args) {
-        junit.textui.TestRunner.run(RuperSetTaskTest.class);
-    }
-
-    public void setUp() {
-        configureProject("src/test/ant/org/apache/ruper/ant/sandbox/chalko/test-build.xml");
-    }
-
-    public void test1() {
-        executeTarget("test1");
-        //String basepath = "test1";
-        //Path path = (Path) project.getReference(basepath + ".classpath");
-        //assertNotNull(basepath + " path not found", path);
-        //assertBasePathContainsFile(basepath, "log4j-1.2.8.jar");
-    }
-
+	/**
+	 * Constructor for RuperDependTaskTest.
+	 * 
+	 * @param arg0
+	 */
+	public RuperSetTaskTest(String arg0) {
+		super(arg0);
+	}
+	public static void main(String[] args) {
+		junit.textui.TestRunner.run(RuperSetTaskTest.class);
+	}
+	public void setUp() {
+		configureProject("src/test/ant/org/apache/ruper/ant/sandbox/chalko/test-build.xml");
+	}
+	public void test1() {
+		executeTarget("test1");
+		File file = new File("build/test/sandbox/log4j-1.2.jar");
+		assertTrue("Expected " + file + " to  exists", file.exists());
+	}
 }

Mime
View raw message