hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r158934 - jakarta/httpclient/trunk/http-common/src/test/org/apache/http/TestStatusLine.java
Date Thu, 24 Mar 2005 18:48:04 GMT
Author: olegk
Date: Thu Mar 24 10:48:03 2005
New Revision: 158934

URL: http://svn.apache.org/viewcvs?view=rev&rev=158934
Log:
Removed unnecessary instance variable

Modified:
    jakarta/httpclient/trunk/http-common/src/test/org/apache/http/TestStatusLine.java

Modified: jakarta/httpclient/trunk/http-common/src/test/org/apache/http/TestStatusLine.java
URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/http-common/src/test/org/apache/http/TestStatusLine.java?view=diff&r1=158933&r2=158934
==============================================================================
--- jakarta/httpclient/trunk/http-common/src/test/org/apache/http/TestStatusLine.java (original)
+++ jakarta/httpclient/trunk/http-common/src/test/org/apache/http/TestStatusLine.java Thu
Mar 24 10:48:03 2005
@@ -39,8 +39,6 @@
  */
 public class TestStatusLine extends TestCase {
 
-    private StatusLine statusLine = null;
-
     // ------------------------------------------------------------ Constructor
     public TestStatusLine(String testName) {
         super(testName);
@@ -93,7 +91,7 @@
 
     public void testSuccess() throws Exception {
         //typical status line
-        statusLine = StatusLine.parse("HTTP/1.1 200 OK");
+        StatusLine statusLine = StatusLine.parse("HTTP/1.1 200 OK");
         assertEquals("HTTP/1.1 200 OK", statusLine.toString());
         assertEquals(HttpVersion.HTTP_1_1, statusLine.getHttpVersion());
         assertEquals(200, statusLine.getStatusCode());
@@ -141,6 +139,7 @@
     }
 
     public void testFailure() throws Exception {
+        StatusLine statusLine = null;
         try {
             statusLine = StatusLine.parse("xxx 200 OK");
             fail();
@@ -162,6 +161,7 @@
     }
 
     public void testNullInput() throws Exception {
+        StatusLine statusLine = null;
         try {
             statusLine = StatusLine.parse(null);
             fail("IllegalArgumentException should have been thrown");



Mime
View raw message