Index: src/test/org/apache/commons/httpclient/TestPartsNoHost.java =================================================================== RCS file: /home/cvspublic/jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestPartsNoHost.java,v retrieving revision 1.1 diff -u -r1.1 TestPartsNoHost.java --- src/test/org/apache/commons/httpclient/TestPartsNoHost.java 29 Oct 2002 06:40:15 -0000 1.1 +++ src/test/org/apache/commons/httpclient/TestPartsNoHost.java 30 Oct 2002 23:09:43 -0000 @@ -96,7 +96,7 @@ // ------------------------------------------------------- TestCase Methods public static Test suite() { - return new TestSuite(TestMethodsNoHost.class); + return new TestSuite(TestPartsNoHost.class); } // ----------------------------------------------------------------- Tests @@ -145,7 +145,8 @@ public void testFilePartNoBuffer() throws Exception { File file = createTempTestFile(); - FilePart part = new FilePart(NAME, file); + FilePart part = new FilePart(NAME, + new FileInputStream(file), file.getName(), file.length()); part.setBufferData(false); ByteArrayOutputStream stream = new ByteArrayOutputStream(); part.send(stream); @@ -163,6 +164,7 @@ part.send(stream); String resp1 = stream.toString(); stream = new ByteArrayOutputStream(); + part.send(stream); String resp2 = stream.toString(); assertEquals(resp1, resp2); }