From: Erich G. <eg...@us...> - 2002-03-30 22:37:43
|
Update of /cvsroot/junit/junit/junit/samples/money In directory usw-pr-cvs1:/tmp/cvs-serv28016/junit/samples/money Modified Files: MoneyTest.java IMoney.java Log Message: finished support for no-arg constructor. tweaks to the Swing UI Index: MoneyTest.java =================================================================== RCS file: /cvsroot/junit/junit/junit/samples/money/MoneyTest.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- MoneyTest.java 29 Mar 2002 16:10:13 -0000 1.5 +++ MoneyTest.java 30 Mar 2002 22:37:40 -0000 1.6 @@ -11,9 +11,6 @@ private IMoney fMB1; private IMoney fMB2; - public MoneyTest(String name) { - super(name); - } public static void main(String args[]) { junit.textui.TestRunner.run(MoneyTest.class); } Index: IMoney.java =================================================================== RCS file: /cvsroot/junit/junit/junit/samples/money/IMoney.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- IMoney.java 2 Oct 2001 19:38:22 -0000 1.2 +++ IMoney.java 30 Mar 2002 22:37:40 -0000 1.3 @@ -13,12 +13,12 @@ * Adds a simple Money to this money. This is a helper method for * implementing double dispatch */ - IMoney addMoney(Money m); + public abstract IMoney addMoney(Money m); /** * Adds a MoneyBag to this money. This is a helper method for * implementing double dispatch */ - IMoney addMoneyBag(MoneyBag s); + public abstract IMoney addMoneyBag(MoneyBag s); /** * Tests whether this money is zero */ @@ -38,5 +38,5 @@ /** * Append this to a MoneyBag m. */ - void appendTo(MoneyBag m); + public abstract void appendTo(MoneyBag m); } |