|
From: <pe...@us...> - 2003-11-21 04:45:26
|
Update of /cvsroot/neuclear/neuclear-id/src/test/org/neuclear/source
In directory sc8-pr-cvs1:/tmp/cvs-serv10855/src/test/org/neuclear/source
Modified Files:
HttpSourceTest.java SourceTest.java
Log Message:
EncryptedFileStore now works. It uses the PBECipher with DES3 afair.
Otherwise You will Finaliate.
Anything that can be final has been made final throughout everyting. We've used IDEA's Inspector tool to find all instance of variables that could be final.
This should hopefully make everything more stable (and secure).
Index: HttpSourceTest.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/test/org/neuclear/source/HttpSourceTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** HttpSourceTest.java 5 Nov 2003 18:50:34 -0000 1.1
--- HttpSourceTest.java 21 Nov 2003 04:45:17 -0000 1.2
***************
*** 21,24 ****
--- 21,30 ----
$Id$
$Log$
+ Revision 1.2 2003/11/21 04:45:17 pelle
+ EncryptedFileStore now works. It uses the PBECipher with DES3 afair.
+ Otherwise You will Finaliate.
+ Anything that can be final has been made final throughout everyting. We've used IDEA's Inspector tool to find all instance of variables that could be final.
+ This should hopefully make everything more stable (and secure).
+
Revision 1.1 2003/11/05 18:50:34 pelle
Refactored org.neuclear.signers.source.Source and implementing classes to provide support for a local filesystem cache.
***************
*** 32,41 ****
* Time: 1:27:17 PM
*/
! public class HttpSourceTest extends SourceTest {
! public HttpSourceTest(String name) {
super(name);
}
! protected Source createSource() {
return new HttpSource();
}
--- 38,47 ----
* Time: 1:27:17 PM
*/
! public final class HttpSourceTest extends SourceTest {
! public HttpSourceTest(final String name) {
super(name);
}
! protected final Source createSource() {
return new HttpSource();
}
Index: SourceTest.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/test/org/neuclear/source/SourceTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** SourceTest.java 5 Nov 2003 18:50:34 -0000 1.1
--- SourceTest.java 21 Nov 2003 04:45:17 -0000 1.2
***************
*** 25,28 ****
--- 25,34 ----
$Id$
$Log$
+ Revision 1.2 2003/11/21 04:45:17 pelle
+ EncryptedFileStore now works. It uses the PBECipher with DES3 afair.
+ Otherwise You will Finaliate.
+ Anything that can be final has been made final throughout everyting. We've used IDEA's Inspector tool to find all instance of variables that could be final.
+ This should hopefully make everything more stable (and secure).
+
Revision 1.1 2003/11/05 18:50:34 pelle
Refactored org.neuclear.signers.source.Source and implementing classes to provide support for a local filesystem cache.
***************
*** 37,41 ****
*/
public class SourceTest extends TestCase {
! public SourceTest(String name) {
super(name);
source = createSource();
--- 43,47 ----
*/
public class SourceTest extends TestCase {
! public SourceTest(final String name) {
super(name);
source = createSource();
***************
*** 46,58 ****
}
! public void testFetch() throws NeuClearException {
! SignedNamedObject test = source.fetch("http://repository.neuclear.org", "neu://test");
assertNotNull(test);
assertEquals("neu://test", test.getName());
! SignedNamedObject root = source.fetch("http://repository.neuclear.org", "neu://");
assertNotNull(root);
assertEquals("neu://", root.getName());
}
! private Source source;
}
--- 52,64 ----
}
! public final void testFetch() throws NeuClearException {
! final SignedNamedObject test = source.fetch("http://repository.neuclear.org", "neu://test");
assertNotNull(test);
assertEquals("neu://test", test.getName());
! final SignedNamedObject root = source.fetch("http://repository.neuclear.org", "neu://");
assertNotNull(root);
assertEquals("neu://", root.getName());
}
! private final Source source;
}
|