dirkv 2004/03/06 04:49:02
Modified: latka/src/java/org/apache/commons/latka/jelly
RequestBodyTag.java
latka/src/test/org/apache/commons/latka/junit
TestJUnitEventReporter.java
TestJUnitTestAdapter.java
Log:
import cleanup & static method call cleanup
Revision Changes Path
1.6 +0 -1
jakarta-commons/latka/src/java/org/apache/commons/latka/jelly/RequestBodyTag.java
Index: RequestBodyTag.java
===================================================================
RCS file:
/home/cvs/jakarta-commons/latka/src/java/org/apache/commons/latka/jelly/RequestBodyTag.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- RequestBodyTag.java 28 Feb 2004 13:48:19 -0000 1.5
+++ RequestBodyTag.java 6 Mar 2004 12:49:02 -0000 1.6
@@ -20,7 +20,6 @@
import org.apache.commons.jelly.TagSupport;
import org.apache.commons.jelly.XMLOutput;
-import org.apache.commons.latka.LatkaException;
import org.apache.commons.latka.http.Request;
/**
1.6 +6 -7
jakarta-commons/latka/src/test/org/apache/commons/latka/junit/TestJUnitEventReporter.java
Index: TestJUnitEventReporter.java
===================================================================
RCS file:
/home/cvs/jakarta-commons/latka/src/test/org/apache/commons/latka/junit/TestJUnitEventReporter.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- TestJUnitEventReporter.java 28 Feb 2004 13:48:20 -0000 1.5
+++ TestJUnitEventReporter.java 6 Mar 2004 12:49:02 -0000 1.6
@@ -19,6 +19,11 @@
import java.net.MalformedURLException;
import java.net.URL;
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestResult;
+import junit.framework.TestSuite;
+
import org.apache.commons.latka.ValidationException;
import org.apache.commons.latka.event.RequestErrorEvent;
import org.apache.commons.latka.event.RequestEvent;
@@ -26,13 +31,7 @@
import org.apache.commons.latka.event.RequestSkippedEvent;
import org.apache.commons.latka.event.RequestSucceededEvent;
import org.apache.commons.latka.http.Request;
-import org.apache.commons.latka.http.Response;
import org.apache.commons.latka.http.SessionImpl;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestResult;
-import junit.framework.TestSuite;
/**
* @author Chuck Burdick
1.11 +5 -12
jakarta-commons/latka/src/test/org/apache/commons/latka/junit/TestJUnitTestAdapter.java
Index: TestJUnitTestAdapter.java
===================================================================
RCS file:
/home/cvs/jakarta-commons/latka/src/test/org/apache/commons/latka/junit/TestJUnitTestAdapter.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- TestJUnitTestAdapter.java 28 Feb 2004 13:48:20 -0000 1.10
+++ TestJUnitTestAdapter.java 6 Mar 2004 12:49:02 -0000 1.11
@@ -17,22 +17,15 @@
package org.apache.commons.latka.junit;
import java.io.File;
-import java.io.FileNotFoundException;
-import java.io.FileReader;
-import java.net.MalformedURLException;
import java.net.SocketException;
-import java.net.URL;
-
-import org.apache.commons.latka.Latka;
-import org.apache.commons.latka.Suite;
-
-import org.xml.sax.InputSource;
import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestResult;
import junit.framework.TestSuite;
+import org.apache.commons.latka.Suite;
+import org.xml.sax.InputSource;
+
/**
* @author Chuck Burdick
* @version $Id$
@@ -72,7 +65,7 @@
try {
assertEquals("Should parse the xml and count the request objects",
9,
- _adapter.parse(new InputSource(_xmlFile.toURL().toString())));
+ JUnitTestAdapter.parse(new
InputSource(_xmlFile.toURL().toString())));
} catch (SocketException se) {
// allow offline tests
if (se.getMessage().indexOf("unreachable") == -1) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]