notice that encoding (US-ASCII or UTF-8) should be precised both when converting String to byte[] and byte[] to String, or you're implicitely using platform encoding which is not the best: if anybody tries to run tests on an EBCDIC platform, they will fail (I know, this is quite rare, but that's chicken and egg problem: it is rare because it always fail for stupid reasons, then nobody takes care of such little things)
Regards, Hervé Le mercredi 25 mai 2011, [email protected] a écrit : > + assertThat( new String( new Base64().encode( "test".getBytes() ) > ), is( "dGVzdA==" ) ); } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
