diff -r 000000000000 -r 2ae6e4aa7aef taskx/psmid/against-solution13/test/apifest/CurrencyTest.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/taskx/psmid/against-solution13/test/apifest/CurrencyTest.java Sat Oct 25 20:53:00 2008 +0200 @@ -0,0 +1,26 @@ +package apifest; + +import junit.framework.TestCase; +import org.apidesign.apifest08.currency.ConvertorCurrency; +import org.apidesign.apifest08.currency.ExchangeRate; +import org.apidesign.apifest08.currency.ExchangeRateProvider; + + +/** 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 { + ExchangeRateProvider e = new ExchangeRateProvider(null, null, null, null) { + private ExchangeRate getExchangeRate(ConvertorCurrency a, ConvertorCurrency b) { //in version B it shouln't compile + return null; + } + }; + } +}