hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r156283 - jakarta/httpclient/trunk/http-common/src/test/org/apache/http/TestAll.java jakarta/httpclient/trunk/http-common/src/test/org/apache/http/TestHeaderElement.java
Date Sat, 05 Mar 2005 22:42:42 GMT
Author: olegk
Date: Sat Mar  5 14:42:41 2005
New Revision: 156283

URL: http://svn.apache.org/viewcvs?view=rev&rev=156283
Log:
Post SVN COPY adjustments

Added:
    jakarta/httpclient/trunk/http-common/src/test/org/apache/http/TestHeaderElement.java
      - copied, changed from r156282, jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/TestHeaderElement.java
Modified:
    jakarta/httpclient/trunk/http-common/src/test/org/apache/http/TestAll.java

Modified: jakarta/httpclient/trunk/http-common/src/test/org/apache/http/TestAll.java
URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/http-common/src/test/org/apache/http/TestAll.java?view=diff&r1=156282&r2=156283
==============================================================================
--- jakarta/httpclient/trunk/http-common/src/test/org/apache/http/TestAll.java (original)
+++ jakarta/httpclient/trunk/http-common/src/test/org/apache/http/TestAll.java Sat Mar  5
14:42:41 2005
@@ -43,6 +43,7 @@
         suite.addTest(TestAllUtil.suite());
         suite.addTest(TestNameValuePair.suite());
         suite.addTest(TestHeader.suite());
+        suite.addTest(TestHeaderElement.suite());
         suite.addTest(TestHttpStatus.suite());
         suite.addTest(TestHttpVersion.suite());
         return suite;

Copied: jakarta/httpclient/trunk/http-common/src/test/org/apache/http/TestHeaderElement.java
(from r156282, jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/TestHeaderElement.java)
URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/http-common/src/test/org/apache/http/TestHeaderElement.java?view=diff&rev=156283&p1=jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/TestHeaderElement.java&r1=156282&p2=jakarta/httpclient/trunk/http-common/src/test/org/apache/http/TestHeaderElement.java&r2=156283
==============================================================================
--- jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/TestHeaderElement.java
(original)
+++ jakarta/httpclient/trunk/http-common/src/test/org/apache/http/TestHeaderElement.java Sat
Mar  5 14:42:41 2005
@@ -28,7 +28,7 @@
  *
  */
 
-package org.apache.commons.httpclient;
+package org.apache.http;
 
 import junit.framework.*;
 
@@ -38,10 +38,10 @@
  * @author Rodney Waldhoff
  * @author <a href="mailto:bcholmes@interlog.com">B.C. Holmes</a>
  * @author <a href="mailto:jericho@thinkfree.com">Park, Sung-Gu</a>
- * @author <a href="mailto:oleg@ural.ru">oleg Kalnichevski</a>
+ * @author <a href="mailto:oleg at ural.ru">oleg Kalnichevski</a>
  * @version $Id$
  */
-public class TestHeaderElement extends TestNVP {
+public class TestHeaderElement extends TestCase {
 
     // ------------------------------------------------------------ Constructor
     public TestHeaderElement(String testName) {
@@ -60,20 +60,7 @@
         return new TestSuite(TestHeaderElement.class);
     }
 
-    // ------------------------------------------------------ Protected Methods
-
-    protected NameValuePair makePair() {
-        return new HeaderElement();
-    }
-
-    protected NameValuePair makePair(String name, String value) {
-        return new HeaderElement(name,value);
-    }
-
-
-    // ----------------------------------------------------------- Test Methods
-
-    public void testOldMain() throws Exception {
+    public void testParseHeaderElements() throws Exception {
         // this is derived from the old main method in HeaderElement
         String headerValue = "name1 = value1; name2; name3=\"value3\" , name4=value4; " +
             "name5=value5, name6= ; name7 = value7; name8 = \" value8\"";



Mime
View raw message