|
From: <pe...@us...> - 2003-10-25 08:27:45
|
Update of /cvsroot/neuclear/neuclear-id/src/test/org/neuclear/id
In directory sc8-pr-cvs1:/tmp/cvs-serv15459/src/test/org/neuclear/id
Modified Files:
NSToolsTest.java
Log Message:
Replaced the dependency for the Apache Regex library with JDK1.4's Regex implementation.
Changed the valid format of NeuClear ID's to include neu://bob@hello/ formatted ids.
These ids are not identical to neu://hello/bob however in both cases neu://hello has to sign the Identity document.
Index: NSToolsTest.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/test/org/neuclear/id/NSToolsTest.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** NSToolsTest.java 21 Oct 2003 22:31:14 -0000 1.5
--- NSToolsTest.java 22 Oct 2003 22:12:33 -0000 1.6
***************
*** 2,5 ****
--- 2,10 ----
$Id$
$Log$
+ Revision 1.6 2003/10/22 22:12:33 pelle
+ Replaced the dependency for the Apache Regex library with JDK1.4's Regex implementation.
+ Changed the valid format of NeuClear ID's to include neu://bob@hello/ formatted ids.
+ These ids are not identical to neu://hello/bob however in both cases neu://hello has to sign the Identity document.
+
Revision 1.5 2003/10/21 22:31:14 pelle
Renamed NeudistException to NeuClearException and moved it to org.neuclear.commons where it makes more sense.
***************
*** 77,88 ****
package org.neuclear.id;
- import junit.framework.Test;
import junit.framework.TestCase;
- import junit.framework.TestSuite;
import org.neuclear.commons.NeuClearException;
/**
- *
* @author Pelle Braendgaard
*/
--- 82,90 ----
***************
*** 108,112 ****
assertValidName("neu://help/abcdefg232Avc");
assertValidName("/help/abcdefg232Avc");
! //assertInvalidName("neu:/");// TODO Doesnt pass as invalid. Ignore short term, fix soon.
assertInvalidName("neu");
assertInvalidName("");
--- 110,124 ----
assertValidName("neu://help/abcdefg232Avc");
assertValidName("/help/abcdefg232Avc");
!
! assertValidName("neu://pelle@help");
! assertValidName("neu://pelle@help/abcdefg232Avc");
!
! assertValidName("neu://pelle@neuclear.org");
! assertValidName("neu://pelle@neuclear.org/abcdefg232Avc");
!
! assertInvalidName("neu:/");
! assertInvalidName("neu://test/pelle@help");
! assertInvalidName("neu://test/pelle@help/abcdefg232Avc");
!
assertInvalidName("neu");
assertInvalidName("");
|