You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@depot.apache.org by ni...@apache.org on 2004/04/16 23:08:36 UTC
svn commit: rev 10066 - incubator/depot/trunk/update/src/test/org/apache/depot/update/ant/sandbox/chalko
Author: nickchalko
Date: Fri Apr 16 16:08:35 2004
New Revision: 10066
Modified:
incubator/depot/trunk/update/src/test/org/apache/depot/update/ant/sandbox/chalko/UpdateSetTaskTest.java
Log:
Print the output to aid in debugging.
Modified: incubator/depot/trunk/update/src/test/org/apache/depot/update/ant/sandbox/chalko/UpdateSetTaskTest.java
==============================================================================
--- incubator/depot/trunk/update/src/test/org/apache/depot/update/ant/sandbox/chalko/UpdateSetTaskTest.java (original)
+++ incubator/depot/trunk/update/src/test/org/apache/depot/update/ant/sandbox/chalko/UpdateSetTaskTest.java Fri Apr 16 16:08:35 2004
@@ -1,27 +1,27 @@
-/* ========================================================================
+/*
+ * ========================================================================
* Copyright 2004 The Apache Software Foundation
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
* ========================================================================
*/
package org.apache.depot.update.ant.sandbox.chalko;
import java.io.File;
-
import org.apache.depot.common.log.Logger;
import org.apache.tools.ant.BuildFileTest;
/**
- * @author <a href="http://incubator.apache.org/depot"
- * >The Apache Incubator Depot Project</a>
+ * @author <a href="http://incubator.apache.org/depot" >The Apache Incubator
+ * Depot Project </a>
* @version $LastChangedRevision: 9844 $
*/
public class UpdateSetTaskTest extends BuildFileTest {
@@ -41,13 +41,22 @@
configureProject("src/test/org/apache/depot/update/ant/sandbox/chalko/build.xml");
}
public void test1() {
- executeTarget("test1");
- File file = new File("build/test/sandbox/helloworld/jars/helloworld-1.2.jar");
- assertTrue("Expected " + file + " to exists", file.exists());
+ try {
+ executeTarget("test1");
+ File file = new File("build/test/sandbox/helloworld/jars/helloworld-1.2.jar");
+ assertTrue("Expected " + file + " to exists", file.exists());
+ } finally {
+ System.out.println(getOutput());
+ }
}
public void test2() {
- executeTarget("test2");
- File file = new File("build/test/sandbox/helloworld/jars/helloworld-1.2.jar");
- assertTrue("Expected " + file + " to exists", file.exists());
+ try {
+ executeTarget("test2");
+ System.out.println(getOutput());
+ File file = new File("build/test/sandbox/helloworld/jars/helloworld-1.2.jar");
+ assertTrue("Expected " + file + " to exists", file.exists());
+ } finally {
+ System.out.println(getOutput());
+ }
}
}