Fixed some warnings and started on the NetLog project

This commit is contained in:
Ziver Koc 2013-05-03 19:31:45 +00:00
parent db9b2bf307
commit 27b12e1b9b
29 changed files with 722 additions and 322 deletions

View file

@ -34,15 +34,15 @@ public class Base64Test {
Base64Decoder decoder = new Base64Decoder();
//decoder.decode("TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1dCBieSB0aGlzIHNpbmd1bGFyIHBhc3Npb24gZnJvbSBvdGhlciBhbmltYWxzLCB3aGljaCBpcyBhIGx1c3Qgb2YgdGhlIG1pbmQsIHRoYXQgYnkgYSBwZXJzZXZlcmFuY2Ugb2YgZGVsaWdodCBpbiB0aGUgY29udGludWVkIGFuZCBpbmRlZmF0aWdhYmxlIGdlbmVyYXRpb24gb2Yga25vd2xlZGdlLCBleGNlZWRzIHRoZSBzaG9ydCB2ZWhlbWVuY2Ugb2YgYW55IGNhcm5hbCBwbGVhc3VyZS4=");
//assertEquals( "Man is distinguished, not only by his reason, but by this singular passion from other animals, which is a lust of the mind, that by a perseverance of delight in the continued and indefatigable generation of knowledge, exceeds the short vehemence of any carnal pleasure.", decoder.toString() );
decoder.reset();
decoder.decode("YW55IGNhcm5hbCBwbGVhc3VyZQ==");
decoder.clear();
decoder.write("YW55IGNhcm5hbCBwbGVhc3VyZQ==");
assertEquals( "any carnal pleasure", decoder.toString() );
decoder.reset();
decoder.decode("bGVhc3VyZS4=");
decoder.clear();
decoder.write("bGVhc3VyZS4=");
assertEquals( "leasure.", decoder.toString() );
decoder.reset();
decoder.decode("YW55IGNhcm5hbCBwbGVhc3Vy");
decoder.clear();
decoder.write("YW55IGNhcm5hbCBwbGVhc3Vy");
assertEquals( "any carnal pleasur", decoder.toString() );
decoder.reset();
decoder.clear();
}
}

View file

@ -30,6 +30,7 @@ import org.junit.Test;
import zutil.io.BoundaryBufferedInputStream;
import zutil.io.StringInputStream;
@SuppressWarnings("resource")
public class BoundaryBufferedInputStreamTest {
@Test