jtulach@83: package apifest; jtulach@83: jtulach@83: import java.math.BigDecimal; jtulach@83: import junit.framework.TestCase; jtulach@83: import org.apidesign.apifest08.currency.Convertor; jtulach@83: jtulach@83: jtulach@83: /** Write a test that works with version from task A and fails with version B. jtulach@83: */ jtulach@83: public class CurrencyTest extends TestCase { jtulach@83: public CurrencyTest(String n) { jtulach@83: super(n); jtulach@83: } jtulach@83: jtulach@83: public void testCompatibility() throws Exception { jtulach@83: BigDecimal iWantToUseThisAPIConstant = Convertor.one; jtulach@83: assertEquals(1, iWantToUseThisAPIConstant.intValue()); jtulach@83: } jtulach@83: }