View Javadoc
1   package org.melati.poem.test;
2   
3   import org.melati.poem.BigDecimalPoemType;
4   import org.melati.poem.DoublePoemType;
5   
6   /**
7    * @author timp
8    * @since 21 Dec 2006
9    *
10   */
11  public class NullableSetBigDecimalPoemTypeTest extends NotNullableSetBigDecimalPoemTypeTest {
12  
13    public NullableSetBigDecimalPoemTypeTest() {
14    }
15  
16    public NullableSetBigDecimalPoemTypeTest(String name) {
17      super(name);
18    }
19  
20    void setObjectUnderTest() {
21      it = new BigDecimalPoemType(true, 22, 2);
22    }
23  
24    /**
25     * BigDecimals can represent Doubles.
26     */
27    public void testCanRepresentDoubles() { 
28      assertNotNull(it.canRepresent(DoublePoemType.it));
29      assertNotNull(it.canRepresent(new DoublePoemType(false)));
30    }
31  
32  }