You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ol...@apache.org on 2004/09/19 21:07:22 UTC
cvs commit: jakarta-commons/httpclient/src/test/org/apache/commons/httpclient TestStreams.java
olegk 2004/09/19 12:07:21
Modified: httpclient/src/java/org/apache/commons/httpclient/params
HostParams.java
httpclient/src/test/org/apache/commons/httpclient
TestStreams.java
Log:
Javadoc fix
Revision Changes Path
1.4 +5 -5 jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/params/HostParams.java
Index: HostParams.java
===================================================================
RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/params/HostParams.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- HostParams.java 15 Sep 2004 20:42:17 -0000 1.3
+++ HostParams.java 19 Sep 2004 19:07:21 -0000 1.4
@@ -54,7 +54,7 @@
* Defines the request headers to be sent per default with each request.
* <p>
* This parameter expects a value of type {@link java.util.Collection}. The
- * collection is expected to contain {@link Header}s.
+ * collection is expected to contain {@link org.apache.commons.httpclient.Header}s.
* </p>
*/
public static final String DEFAULT_HEADERS = "http.default-headers";
1.18 +6 -6 jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestStreams.java
Index: TestStreams.java
===================================================================
RCS file: /home/cvs/jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestStreams.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- TestStreams.java 9 Aug 2004 01:25:54 -0000 1.17
+++ TestStreams.java 19 Sep 2004 19:07:21 -0000 1.18
@@ -139,16 +139,16 @@
}
public void testContentLengthInputStreamSkip() throws IOException {
- InputStream in = new ContentLengthInputStream(new ByteArrayInputStream(new byte[20]), 10);
+ InputStream in = new ContentLengthInputStream(new ByteArrayInputStream(new byte[20]), 10L);
assertEquals(10, in.skip(10));
assertTrue(in.read() == -1);
- in = new ContentLengthInputStream(new ByteArrayInputStream(new byte[20]), 10);
+ in = new ContentLengthInputStream(new ByteArrayInputStream(new byte[20]), 10L);
in.read();
assertEquals(9, in.skip(10));
assertTrue(in.read() == -1);
- in = new ContentLengthInputStream(new ByteArrayInputStream(new byte[20]), 2);
+ in = new ContentLengthInputStream(new ByteArrayInputStream(new byte[20]), 2L);
in.read();
in.read();
assertTrue(in.skip(10) <= 0);
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org