|
From: Pelle B. <pe...@us...> - 2004-03-25 21:50:37
|
Update of /cvsroot/neuclear/neuclear-ledger/src/java/org/neuclear/ledger/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8842/src/java/org/neuclear/ledger/tests Modified Files: AbstractLedgerTest.java Log Message: Modified expire tests a bit to eliminate one cause for an error Index: AbstractLedgerTest.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-ledger/src/java/org/neuclear/ledger/tests/AbstractLedgerTest.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** AbstractLedgerTest.java 25 Mar 2004 19:03:23 -0000 1.4 --- AbstractLedgerTest.java 25 Mar 2004 21:39:43 -0000 1.5 *************** *** 13,20 **** * $Id$ * $Log$ * Revision 1.4 2004/03/25 19:03:23 pelle * PostedTransaction and friend now verify the unpostedtransaction is balanced. * Updated schema for HHeld to include a cancelled field and a completed field. (The latter doesnt yet work right). Need to read more Hibernate docs to find out why. ! * * Revision 1.3 2004/03/25 16:44:21 pelle * Added getTestBalance() and isBalanced() to Ledger to see if ledger is balanced. --- 13,23 ---- * $Id$ * $Log$ + * Revision 1.5 2004/03/25 21:39:43 pelle + * Modified expire tests a bit to eliminate one cause for an error + * * Revision 1.4 2004/03/25 19:03:23 pelle * PostedTransaction and friend now verify the unpostedtransaction is balanced. * Updated schema for HHeld to include a cancelled field and a completed field. (The latter doesnt yet work right). Need to read more Hibernate docs to find out why. ! * <p/> * Revision 1.3 2004/03/25 16:44:21 pelle * Added getTestBalance() and isBalanced() to Ledger to see if ledger is balanced. *************** *** 248,259 **** System.out.println("Bob's Balance: " + ledger.getBalance(BOB)); ! ledger.hold(ALICE, BOB, new Date(System.currentTimeMillis() + 5000), amount, "LOAN"); assertEquals("ALICE BALANCE", aliceBalance, ledger.getBalance(ALICE), 0); assertEquals("BOB BALANCE", bobBalance, ledger.getBalance(BOB), 0); - assertEquals("ALICE Available BALANCE", aliceBalance - amount, ledger.getAvailableBalance(ALICE), 0); - assertEquals("BOB Available BALANCE", bobBalance, ledger.getAvailableBalance(BOB), 0); try { ! Thread.currentThread().sleep(5000); } catch (InterruptedException e) { ; --- 251,262 ---- 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); assertEquals("ALICE BALANCE", aliceBalance, ledger.getBalance(ALICE), 0); assertEquals("BOB BALANCE", bobBalance, ledger.getBalance(BOB), 0); try { ! Thread.currentThread().sleep(10000); } catch (InterruptedException e) { ; |