taskx/jtulach/against-solution06/test/apifest/CurrencyTest.java
changeset 79 0c910349ba67
parent 14 d907b216f8a1
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/taskx/jtulach/against-solution06/test/apifest/CurrencyTest.java	Sat Oct 11 18:25:11 2008 +0200
     1.3 @@ -0,0 +1,20 @@
     1.4 +package apifest;
     1.5 +
     1.6 +import java.util.Currency;
     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 +        Currency cur1 = Currency.getInstance("CZK");
    1.20 +        Currency cur2 = Currency.getInstance("SKK");
    1.21 +        Convertor c = new Convertor(null, cur1, cur2);
    1.22 +    }
    1.23 +}