"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "httpclient/src/test/java/org/apache/http/client/methods/TestHttpRequestBase.java" between
httpcomponents-client-4.5.6-src.tar.gz and httpcomponents-client-4.5.7-src.tar.gz

About: HttpComponents is an Apache project responsible for creating and maintaining a toolset of low level Java components focused on HTTP and associated protocols. Java sources.

TestHttpRequestBase.java  (httpcomponents-client-4.5.6-src):TestHttpRequestBase.java  (httpcomponents-client-4.5.7-src)
skipping to change at line 100 skipping to change at line 100
final StringEntity e1 = new StringEntity("stuff"); final StringEntity e1 = new StringEntity("stuff");
httppost.setEntity(e1); httppost.setEntity(e1);
clone = (HttpPost) httppost.clone(); clone = (HttpPost) httppost.clone();
Assert.assertTrue(clone.getEntity() instanceof StringEntity); Assert.assertTrue(clone.getEntity() instanceof StringEntity);
Assert.assertFalse(clone.getEntity().equals(e1)); Assert.assertFalse(clone.getEntity().equals(e1));
} }
@Test(expected=CloneNotSupportedException.class) @Test(expected=CloneNotSupportedException.class)
public void testCloneStreamingEntityEnclosingRequests() throws Exception { public void testCloneStreamingEntityEnclosingRequests() throws Exception {
final ByteArrayInputStream instream = new ByteArrayInputStream(new byte[ final ByteArrayInputStream inStream = new ByteArrayInputStream(new byte[
] {}); ] {});
final InputStreamEntity e2 = new InputStreamEntity(instream, -1); final InputStreamEntity e2 = new InputStreamEntity(inStream, -1);
final HttpPost httppost = new HttpPost("http://host/path"); final HttpPost httppost = new HttpPost("http://host/path");
httppost.setEntity(e2); httppost.setEntity(e2);
httppost.clone(); httppost.clone();
} }
} }
 End of changes. 1 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)