hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r160207 - jakarta/httpclient/trunk/http-common/src/test/org/apache/http/mockup/HttpConnectionMockup.java
Date Tue, 05 Apr 2005 18:43:35 GMT
Author: olegk
Date: Tue Apr  5 11:43:34 2005
New Revision: 160207

URL: http://svn.apache.org/viewcvs?view=rev&rev=160207
Log:
HttpConnection mockup

Added:
    jakarta/httpclient/trunk/http-common/src/test/org/apache/http/mockup/HttpConnectionMockup.java
  (with props)

Added: jakarta/httpclient/trunk/http-common/src/test/org/apache/http/mockup/HttpConnectionMockup.java
URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/http-common/src/test/org/apache/http/mockup/HttpConnectionMockup.java?view=auto&rev=160207
==============================================================================
--- jakarta/httpclient/trunk/http-common/src/test/org/apache/http/mockup/HttpConnectionMockup.java
(added)
+++ jakarta/httpclient/trunk/http-common/src/test/org/apache/http/mockup/HttpConnectionMockup.java
Tue Apr  5 11:43:34 2005
@@ -0,0 +1,38 @@
+package org.apache.http.mockup;
+
+import java.io.IOException;
+
+import org.apache.http.HttpConnection;
+
+/**
+ * {@link HttpConnection} mockup implementation.
+ *
+ * @author <a href="mailto:oleg at ural.ru">Oleg Kalnichevski</a>
+ */
+public class HttpConnectionMockup implements HttpConnection {
+
+    private boolean open = true;
+    
+    public HttpConnectionMockup() {
+        super();
+    }
+    
+    public void close() throws IOException {
+        this.open = false;
+    }
+    
+    public int getSocketTimeout() throws IOException {
+        return 0;
+    }
+    
+    public boolean isOpen() {
+        return this.open;
+    }
+    
+    public boolean isStale() {
+        return false;
+    }
+
+    public void setSocketTimeout(int timeout) throws IOException {
+    }
+}

Propchange: jakarta/httpclient/trunk/http-common/src/test/org/apache/http/mockup/HttpConnectionMockup.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: jakarta/httpclient/trunk/http-common/src/test/org/apache/http/mockup/HttpConnectionMockup.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: jakarta/httpclient/trunk/http-common/src/test/org/apache/http/mockup/HttpConnectionMockup.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message