From: David S. <ds...@us...> - 2006-02-15 22:55:49
|
Update of /cvsroot/junit/junit/doc/testinfected In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13390/doc/testinfected Modified Files: testing.htm Log Message: Merged with branch, Kent will make final changes and launch. Index: testing.htm =================================================================== RCS file: /cvsroot/junit/junit/doc/testinfected/testing.htm,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- testing.htm 5 Feb 2002 21:44:49 -0000 1.6 +++ testing.htm 15 Feb 2006 22:55:39 -0000 1.7 @@ -452,7 +452,7 @@ <pre><tt>public void testSimplify() { // {[12 CHF][7 USD]} + [-12 CHF] == [7 USD] Money expected= new Money(7, "USD"); - Assert.assertEquals(expected, fMS1.add(new Money(-12, "CHF"))); + Assert.assertEquals(expected, fMB1.add(new Money(-12, "CHF"))); }</tt></pre> When you are developing in this style you will often have a thought and turn immediately to writing a test, rather than going straight to the code. |