|
From: Pelle B. <pe...@us...> - 2004-04-05 22:19:29
|
Update of /cvsroot/neuclear/neuclear-ledger/src/java/org/neuclear/ledger/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27116/src/java/org/neuclear/ledger/tests Modified Files: AbstractLedgerTest.java Log Message: added setHeldReceiptId() method to ledger Index: AbstractLedgerTest.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-ledger/src/java/org/neuclear/ledger/tests/AbstractLedgerTest.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** AbstractLedgerTest.java 31 Mar 2004 23:11:09 -0000 1.6 --- AbstractLedgerTest.java 5 Apr 2004 22:06:46 -0000 1.7 *************** *** 13,21 **** * $Id$ * $Log$ * Revision 1.6 2004/03/31 23:11:09 pelle * Reworked the ID's of the transactions. The primary ID is now the request ID. * Receipt ID's are optional and added using a separate set method. * The various interactive passphrase agents now have shell methods for the new interactive approach. ! * * Revision 1.5 2004/03/25 21:39:43 pelle * Modified expire tests a bit to eliminate one cause for an error --- 13,24 ---- * $Id$ * $Log$ + * Revision 1.7 2004/04/05 22:06:46 pelle + * added setHeldReceiptId() method to ledger + * * Revision 1.6 2004/03/31 23:11:09 pelle * Reworked the ID's of the transactions. The primary ID is now the request ID. * Receipt ID's are optional and added using a separate set method. * The various interactive passphrase agents now have shell methods for the new interactive approach. ! * <p/> * Revision 1.5 2004/03/25 21:39:43 pelle * Modified expire tests a bit to eliminate one cause for an error *************** *** 256,260 **** System.out.println("Bob's Balance: " + ledger.getBalance(BOB)); ! ledger.hold(ALICE, BOB, new Date(System.currentTimeMillis() + 10000), amount, "LOAN"); assertEquals("ALICE Available BALANCE", aliceBalance - amount, ledger.getAvailableBalance(ALICE), 0); assertEquals("BOB Available BALANCE", bobBalance, ledger.getAvailableBalance(BOB), 0); --- 259,263 ---- System.out.println("Bob's Balance: " + ledger.getBalance(BOB)); ! ledger.hold(ALICE, BOB, new Date(System.currentTimeMillis() + 5000), amount, "LOAN"); assertEquals("ALICE Available BALANCE", aliceBalance - amount, ledger.getAvailableBalance(ALICE), 0); assertEquals("BOB Available BALANCE", bobBalance, ledger.getAvailableBalance(BOB), 0); *************** *** 263,267 **** try { ! Thread.currentThread().sleep(10000); } catch (InterruptedException e) { ; --- 266,270 ---- try { ! Thread.currentThread().sleep(5000); } catch (InterruptedException e) { ; |