diff -r d907b216f8a1 -r 22885b020f15 taskx/jtulach/against-solution04/test/apifest/CurrencyTest.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/taskx/jtulach/against-solution04/test/apifest/CurrencyTest.java Sat Oct 11 13:30:16 2008 +0200 @@ -0,0 +1,24 @@ +package apifest; + +import java.math.BigDecimal; +import java.util.Currency; +import junit.framework.TestCase; +import org.apidesign.apifest08.currency.Convertor; +import org.apidesign.apifest08.currency.InvalidConversionException; + + +/** Write a test that works with version from task A and fails with version B. + */ +public class CurrencyTest extends TestCase { + public CurrencyTest(String n) { + super(n); + } + + public void testCompatibility() throws Exception { + Convertor c = new Convertor() { + public BigDecimal convert(Currency from, Currency to, BigDecimal amount) throws InvalidConversionException { + return null; + } + }; + } +}