taskx/ked/against-solution06/test/apifest/CurrencyTest.java
changeset 83 621462e58e22
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/taskx/ked/against-solution06/test/apifest/CurrencyTest.java	Sat Oct 25 20:30:54 2008 +0200
     1.3 @@ -0,0 +1,19 @@
     1.4 +package apifest;
     1.5 +
     1.6 +import java.math.BigDecimal;
     1.7 +import junit.framework.TestCase;
     1.8 +import org.apidesign.apifest08.currency.Convertor;
     1.9 +
    1.10 +
    1.11 +/** Write a test that works with version from task A and fails with version B.
    1.12 + */
    1.13 +public class CurrencyTest extends TestCase {
    1.14 +    public CurrencyTest(String n) {
    1.15 +        super(n);
    1.16 +    }
    1.17 +    
    1.18 +    public void testCompatibility() throws Exception {
    1.19 +        BigDecimal iWantToUseThisAPIConstant = Convertor.one;
    1.20 +        assertEquals(1, iWantToUseThisAPIConstant.intValue());
    1.21 +    }
    1.22 +}