3 import junit.framework.TestCase;
4 import org.apidesign.apifest08.currency.ConvertorCurrency;
5 import org.apidesign.apifest08.currency.ExchangeRate;
6 import org.apidesign.apifest08.currency.ExchangeRateProvider;
9 /** Write a test that works with version from task A and fails with version B.
12 public class CurrencyTest extends TestCase {
15 public CurrencyTest(String n) {
19 public void testCompatibility() throws Exception {
20 ExchangeRateProvider e = new ExchangeRateProvider(null, null, null, null) {
21 private ExchangeRate getExchangeRate(ConvertorCurrency a, ConvertorCurrency b) { //in version B it shouln't compile