|
From: <pe...@us...> - 2004-02-18 00:22:54
|
Update of /cvsroot/neuclear/neuclear-commons/src/test/org/neuclear/commons/crypto In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29335/src/test/org/neuclear/commons/crypto Modified Files: Base32Tests.java Log Message: Many, many clean ups. I've readded Targets in a new method. Gotten rid of NamedObjectBuilder and revamped Identity and Resolvers Index: Base32Tests.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-commons/src/test/org/neuclear/commons/crypto/Base32Tests.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Base32Tests.java 19 Jan 2004 23:49:29 -0000 1.4 --- Base32Tests.java 18 Feb 2004 00:13:42 -0000 1.5 *************** *** 23,26 **** --- 23,30 ---- $Id$ $Log$ + Revision 1.5 2004/02/18 00:13:42 pelle + Many, many clean ups. I've readded Targets in a new method. + Gotten rid of NamedObjectBuilder and revamped Identity and Resolvers + Revision 1.4 2004/01/19 23:49:29 pelle Unit testing uncovered further issues with Base32 *************** *** 66,70 **** // System.out.print("Encoding: "+TESTSTRINGS[i]+" ..."); final String encoded = Base32.encode(TESTSTRINGS[i]); ! // System.out.println(" ->"+encoded); assertEquals("TESTSTRINGS["+i+"]",TESTSTRINGS[i].getBytes(),Base32.decode(encoded)); } --- 70,74 ---- // System.out.print("Encoding: "+TESTSTRINGS[i]+" ..."); final String encoded = Base32.encode(TESTSTRINGS[i]); ! System.out.println(" ->"+encoded); assertEquals("TESTSTRINGS["+i+"]",TESTSTRINGS[i].getBytes(),Base32.decode(encoded)); } *************** *** 76,80 **** final String hash = com.waterken.url.Base32.encode(CryptoTools.digest(TESTSTRINGS[i])); assertEquals(32, hash.length()); ! // System.out.println(" ->"+hash); assertTrue("TESTSTRINGS["+i+"]",CryptoTools.equalByteArrays(CryptoTools.digest(TESTSTRINGS[i]),Base32.decode(hash))); } --- 80,84 ---- final String hash = com.waterken.url.Base32.encode(CryptoTools.digest(TESTSTRINGS[i])); assertEquals(32, hash.length()); ! System.out.println(" ->"+hash); assertTrue("TESTSTRINGS["+i+"]",CryptoTools.equalByteArrays(CryptoTools.digest(TESTSTRINGS[i]),Base32.decode(hash))); } |