Update of /cvsroot/neuclear/neuclear-pay/src/test/org/neuclear/asset/controllers/currency In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32756/src/test/org/neuclear/asset/controllers/currency Modified Files: CurrencyTests.java HibernateCurrencyTests.java PrevalentCurrencyTests.java Added Files: PrevalentCurrencyHibernateAuditorTests.java Log Message: Hibernate and Pervayler implementations of the Ledger all pass now for both currency and ledger tests. Index: CurrencyTests.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-pay/src/test/org/neuclear/asset/controllers/currency/CurrencyTests.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** CurrencyTests.java 12 Apr 2004 15:27:52 -0000 1.11 --- CurrencyTests.java 12 Apr 2004 19:29:53 -0000 1.12 *************** *** 61,65 **** } ! protected Ledger createAuditLedger() { return new SimpleLedger("audit"); } --- 61,65 ---- } ! protected Ledger createAuditLedger() throws LowlevelLedgerException { return new SimpleLedger("audit"); } *************** *** 291,295 **** AssetBuilder builder = new AssetBuilder("http://bux.neuclear.org", getSigner().getPublicKey("neu://test/bux"), ! getAlice().getPublicKey(), 2, 0); return (Asset) builder.convert("neu://test/bux", getSigner()); --- 291,295 ---- AssetBuilder builder = new AssetBuilder("http://bux.neuclear.org", getSigner().getPublicKey("neu://test/bux"), ! getIssuer().getPublicKey(), 2, 0); return (Asset) builder.convert("neu://test/bux", getSigner()); *************** *** 300,304 **** AssetBuilder builder = new AssetBuilder("http://shoes.neuclear.org", getSigner().getPublicKey("neu://test/bux"), ! getAlice().getPublicKey(), 2, 0); return (Asset) builder.convert("neu://test", getSigner()); --- 300,304 ---- AssetBuilder builder = new AssetBuilder("http://shoes.neuclear.org", getSigner().getPublicKey("neu://test/bux"), ! getIssuer().getPublicKey(), 2, 0); return (Asset) builder.convert("neu://test", getSigner()); Index: PrevalentCurrencyTests.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-pay/src/test/org/neuclear/asset/controllers/currency/PrevalentCurrencyTests.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PrevalentCurrencyTests.java 12 Apr 2004 15:27:52 -0000 1.1 --- PrevalentCurrencyTests.java 12 Apr 2004 19:29:53 -0000 1.2 *************** *** 29,32 **** --- 29,35 ---- $Id$ $Log$ + Revision 1.2 2004/04/12 19:29:53 pelle + Hibernate and Pervayler implementations of the Ledger all pass now for both currency and ledger tests. + Revision 1.1 2004/04/12 15:27:52 pelle Added Hibernate and Prevalent tests for Currency Controllers *************** *** 49,53 **** protected Ledger createControllerLedger() throws IOException, ClassNotFoundException { ! return new PrevalentLedger("asset", "target/test-data/pl"); } --- 52,56 ---- protected Ledger createControllerLedger() throws IOException, ClassNotFoundException { ! return new PrevalentLedger("asset"); } --- NEW FILE: PrevalentCurrencyHibernateAuditorTests.java --- package org.neuclear.asset.controllers.currency; import org.neuclear.commons.NeuClearException; import org.neuclear.ledger.Ledger; import org.neuclear.ledger.LowlevelLedgerException; import org.neuclear.ledger.hibernate.HibernateLedger; import org.neuclear.ledger.prevalent.PrevalentLedger; import java.io.IOException; import java.security.GeneralSecurityException; /* NeuClear Distributed Transaction Clearing Platform (C) 2003 Pelle Braendgaard This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA $Id: PrevalentCurrencyHibernateAuditorTests.java,v 1.1 2004/04/12 19:29:53 pelle Exp $ $Log: PrevalentCurrencyHibernateAuditorTests.java,v $ Revision 1.1 2004/04/12 19:29:53 pelle Hibernate and Pervayler implementations of the Ledger all pass now for both currency and ledger tests. Revision 1.1 2004/04/12 15:27:52 pelle Added Hibernate and Prevalent tests for Currency Controllers Revision 1.1 2004/04/06 23:01:01 pelle Create new PrevalentCurrencyTests TestCase for doing integration testing with various persistent ledgers. */ /** * User: pelleb * Date: Apr 6, 2004 * Time: 8:11:02 PM */ public class PrevalentCurrencyHibernateAuditorTests extends CurrencyTests { public PrevalentCurrencyHibernateAuditorTests(String s) throws GeneralSecurityException, LowlevelLedgerException, NeuClearException, IOException, ClassNotFoundException { super(s); } protected Ledger createControllerLedger() throws IOException, ClassNotFoundException { return new PrevalentLedger("asset"); } protected Ledger createAuditLedger() throws LowlevelLedgerException { return new HibernateLedger("audit", true); } } Index: HibernateCurrencyTests.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-pay/src/test/org/neuclear/asset/controllers/currency/HibernateCurrencyTests.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** HibernateCurrencyTests.java 12 Apr 2004 15:27:52 -0000 1.1 --- HibernateCurrencyTests.java 12 Apr 2004 19:29:53 -0000 1.2 *************** *** 29,32 **** --- 29,35 ---- $Id$ $Log$ + Revision 1.2 2004/04/12 19:29:53 pelle + Hibernate and Pervayler implementations of the Ledger all pass now for both currency and ledger tests. + Revision 1.1 2004/04/12 15:27:52 pelle Added Hibernate and Prevalent tests for Currency Controllers *************** *** 49,53 **** protected Ledger createControllerLedger() throws IOException, ClassNotFoundException, LowlevelLedgerException { ! return new HibernateLedger("test"); } --- 52,56 ---- protected Ledger createControllerLedger() throws IOException, ClassNotFoundException, LowlevelLedgerException { ! return new HibernateLedger("test", true); } |