"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "httpclient/src/test/java/org/apache/http/client/entity/TestDecompressingEntity.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.

TestDecompressingEntity.java  (httpcomponents-client-4.5.6-src):TestDecompressingEntity.java  (httpcomponents-client-4.5.7-src)
skipping to change at line 100 skipping to change at line 100
Assert.assertEquals("1234567890", s); Assert.assertEquals("1234567890", s);
Assert.assertEquals(639479525L, crc32.getValue()); Assert.assertEquals(639479525L, crc32.getValue());
} }
static class ChecksumEntity extends DecompressingEntity { static class ChecksumEntity extends DecompressingEntity {
public ChecksumEntity(final HttpEntity wrapped, final Checksum checksum) { public ChecksumEntity(final HttpEntity wrapped, final Checksum checksum) {
super(wrapped, new InputStreamFactory() { super(wrapped, new InputStreamFactory() {
@Override @Override
public InputStream create(final InputStream instream) throws IOE public InputStream create(final InputStream inStream) throws IOE
xception { xception {
return new CheckedInputStream(instream, checksum); return new CheckedInputStream(inStream, checksum);
} }
}); });
} }
} }
} }
 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)