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