|
From: <pe...@us...> - 2003-10-02 23:29:14
|
Update of /cvsroot/neuclear/neuclear-id/src/test/org/neuclear/id
In directory sc8-pr-cvs1:/tmp/cvs-serv24957/src/test/org/neuclear/id
Modified Files:
NameSpaceTest.java
Log Message:
Updated Root Key. This will be the root key for the remainder of the beta period. With version 1.0 I will update it with a new key.
VerifyingTest works now and also does a pass for fake ones. Will have to think of better ways of making fake Identities to break it.
Cleaned up much of the tests and they all pass now.
The FileStoreTests need to be rethought out, by adding a test key.
Index: NameSpaceTest.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/test/org/neuclear/id/NameSpaceTest.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** NameSpaceTest.java 29 Sep 2003 23:17:32 -0000 1.4
--- NameSpaceTest.java 2 Oct 2003 23:29:03 -0000 1.5
***************
*** 2,5 ****
--- 2,11 ----
$Id$
$Log$
+ Revision 1.5 2003/10/02 23:29:03 pelle
+ Updated Root Key. This will be the root key for the remainder of the beta period. With version 1.0 I will update it with a new key.
+ VerifyingTest works now and also does a pass for fake ones. Will have to think of better ways of making fake Identities to break it.
+ Cleaned up much of the tests and they all pass now.
+ The FileStoreTests need to be rethought out, by adding a test key.
+
Revision 1.4 2003/09/29 23:17:32 pelle
Changes to the senders. Now the senders only work with NamedObjectBuilders
***************
*** 120,135 ****
package org.neuclear.id;
! import junit.framework.Test;
import junit.framework.TestCase;
- import junit.framework.TestSuite;
- import org.neuclear.store.Store;
- import org.neudist.utils.NeudistException;
- import org.neudist.utils.Utility;
- import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
! import java.security.*;
! import java.security.interfaces.RSAPrivateKey;
--- 126,137 ----
package org.neuclear.id;
!
import junit.framework.TestCase;
import java.io.FileNotFoundException;
import java.io.IOException;
! import java.security.GeneralSecurityException;
! import java.security.KeyPair;
! import java.security.PrivateKey;
***************
*** 137,141 ****
* @author Pelle Braendgaard
*/
! public class NameSpaceTest extends TestCase {
public NameSpaceTest(String string) {
--- 139,143 ----
* @author Pelle Braendgaard
*/
! public class NameSpaceTest extends TestCase {
public NameSpaceTest(String string) {
***************
*** 164,169 ****
* </ul>
*/
! protected void setUp() throws FileNotFoundException,GeneralSecurityException, IOException {
try {
//SignatureAlgorithm.providerInit();
--- 166,172 ----
* </ul>
*/
! protected void setUp() throws FileNotFoundException, GeneralSecurityException, IOException {
+ /*
try {
//SignatureAlgorithm.providerInit();
***************
*** 197,215 ****
// Utility.handleException(e);
}
}
! protected void tearDown() {
}
-
- private static void sleepabit() {
- try {
- Thread.currentThread().sleep(1000);
- } catch (InterruptedException e) {
- ; // You are a bad boy Pelle
- }
-
- }
KeyPair root;
--- 200,211 ----
// Utility.handleException(e);
}
+ */
}
! public void testGetRoot() {
! assertNotNull(Identity.NEUROOT);
}
KeyPair root;
|