|
From: Pelle B. <pe...@us...> - 2004-04-02 23:16:49
|
Update of /cvsroot/neuclear/neuclear-pay/src/test/org/neuclear/asset/receiver In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4149/src/test/org/neuclear/asset/receiver Modified Files: PaymentReceiverTest.java Log Message: Got TransferOrder and Builder working with their test cases. Working on TransferReceipt which is the first embedded receipt. This is causing some problems at the moment. Index: PaymentReceiverTest.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-pay/src/test/org/neuclear/asset/receiver/PaymentReceiverTest.java,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** PaymentReceiverTest.java 1 Apr 2004 23:18:34 -0000 1.18 --- PaymentReceiverTest.java 2 Apr 2004 23:04:37 -0000 1.19 *************** *** 11,15 **** import org.neuclear.commons.NeuClearException; import org.neuclear.commons.crypto.signers.TestCaseSigner; - import org.neuclear.id.Identity; import org.neuclear.id.SignedNamedObject; import org.neuclear.id.receiver.Receiver; --- 11,14 ---- *************** *** 46,49 **** --- 45,52 ---- $Id$ $Log$ + Revision 1.19 2004/04/02 23:04:37 pelle + Got TransferOrder and Builder working with their test cases. + Working on TransferReceipt which is the first embedded receipt. This is causing some problems at the moment. + Revision 1.18 2004/04/01 23:18:34 pelle Split Identity into Signatory and Identity class. *************** *** 244,250 **** } ! public final SignedNamedObject createPayments(final Identity from, final Identity to, final double amount) throws InvalidTransferException, XMLException, NeuClearException, IOException, UnsupportedEncodingException { ! final TransferOrderBuilder transfer = new TransferOrderBuilder(asset, to, new Amount(amount), "Test One"); ! return transfer.convert(from.getName(), getSigner()); } --- 247,253 ---- } ! public final SignedNamedObject createPayments(final String from, final String to, final double amount) throws InvalidTransferException, XMLException, NeuClearException, IOException, UnsupportedEncodingException { ! final TransferOrderBuilder transfer = new TransferOrderBuilder(assetName, to, new Amount(amount), "Test One"); ! return transfer.convert(from, getSigner()); } |