author | Jaroslav Tulach <jtulach@netbeans.org> |
Sat, 25 Oct 2008 20:30:54 +0200 | |
changeset 83 | 621462e58e22 |
permissions | -rw-r--r-- |
1 package apifest;
3 import java.math.BigDecimal;
4 import junit.framework.TestCase;
5 import org.apidesign.apifest08.currency.Convertor;
8 /** Write a test that works with version from task A and fails with version B.
9 */
10 public class CurrencyTest extends TestCase {
11 public CurrencyTest(String n) {
12 super(n);
13 }
15 public void testCompatibility() throws Exception {
16 BigDecimal iWantToUseThisAPIConstant = Convertor.one;
17 assertEquals(1, iWantToUseThisAPIConstant.intValue());
18 }
19 }