View Javadoc
1   /**
2    * 
3    */
4   package org.melati.poem.test;
5   
6   import org.melati.poem.DeletedPoemType;
7   import org.melati.poem.DisplayLevelPoemType;
8   import org.melati.poem.IntegerPoemType;
9   
10  /**
11   * @author timp
12   * @since 6 Jan 2007
13   */
14  public class DeletedPoemTypeTest extends NotNullableBooleanPoemTypeTest {
15  
16    public DeletedPoemTypeTest(String name) {
17      super(name);
18    }
19  
20    void setObjectUnderTest() {
21      it = new DeletedPoemType();
22    }
23  
24    /**
25     * Test method for {@link org.melati.poem.PoemType#canRepresent(org.melati.poem.PoemType)}.
26     */
27    public void testCanRepresent() {
28      assertFalse(it.canRepresent(new DisplayLevelPoemType()) instanceof IntegerPoemType);
29    }
30  
31    /**
32     * Test toString.
33     */
34    public void testToString() {
35      assertEquals("deleted (BOOLEAN (org.melati.poem.DeletedPoemType))", it.toString());
36    }
37  
38    
39  }