|
From: <pe...@us...> - 2003-12-12 00:13:15
|
Update of /cvsroot/neuclear/neuclear-id/src/test-cactus/org/neuclear/receiver
In directory sc8-pr-cvs1:/tmp/cvs-serv4382/src/test-cactus/org/neuclear/receiver
Modified Files:
MockReceiver.java
Log Message:
This may actually work now. Need to put a few more test cases in to make sure.
Index: MockReceiver.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/test-cactus/org/neuclear/receiver/MockReceiver.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** MockReceiver.java 11 Dec 2003 23:57:30 -0000 1.1
--- MockReceiver.java 12 Dec 2003 00:13:11 -0000 1.2
***************
*** 3,6 ****
--- 3,7 ----
import org.neuclear.commons.NeuClearException;
import org.neuclear.id.SignedNamedObject;
+ import org.neuclear.id.builders.AuthenticationTicketBuilder;
import org.neuclear.xml.ElementProxy;
***************
*** 25,28 ****
--- 26,32 ----
$Id$
$Log$
+ Revision 1.2 2003/12/12 00:13:11 pelle
+ This may actually work now. Need to put a few more test cases in to make sure.
+
Revision 1.1 2003/12/11 23:57:30 pelle
Trying to test the ReceiverServlet with cactus. Still no luck. Need to return a ElementProxy of some sort.
***************
*** 47,51 ****
public ElementProxy receive(SignedNamedObject obj) throws UnsupportedTransaction, NeuClearException {
received = obj;
! return;
}
--- 51,55 ----
public ElementProxy receive(SignedNamedObject obj) throws UnsupportedTransaction, NeuClearException {
received = obj;
! return new AuthenticationTicketBuilder("neu://test", obj.getName(), "http://localhost");//Just some dummy
}
|