1   /*
2    * Angkor Web Framework
3    *
4    * Distributable under LGPL license.
5    * See terms of license at gnu.org.
6    */
7   package com.tirsen.angkor.test.unit;
8   
9   import com.tirsen.angkor.EmptyView;
10  import com.tirsen.angkor.test.unit.AbstractPipelineTest;
11  
12  import java.io.IOException;
13  
14  /***
15   * TODO document EmptyViewTest
16   *appl
17   * <!-- $Id: EmptyViewTest.java,v 1.1 2002/10/13 13:37:26 tirsen Exp $ -->
18   *
19   * @author $Author: tirsen $
20   * @version $Revision: 1.1 $
21   */
22  public class EmptyViewTest extends AbstractPipelineTest
23  {
24      public void testMethods()
25      {
26          assertNull(EmptyView.EMPTY_VIEW.getContainer());
27          EmptyView.EMPTY_VIEW.setContainer(EmptyView.EMPTY_VIEW);
28          assertNull(EmptyView.EMPTY_VIEW.getContainer());
29          assertFalse(EmptyView.EMPTY_VIEW.isVisible());
30          assertNull(EmptyView.EMPTY_VIEW.uniqueId(null));
31      }
32  
33      public void testRender() throws IOException
34      {
35          EmptyView.EMPTY_VIEW.render(context);
36          assertEquals("nothing should have been rendered", -1, context.getRenderedInputStream().read());
37      }
38  
39      public void testParse()
40      {
41          EmptyView.EMPTY_VIEW.parse(context);
42          assertFalse("no events should have been posted", context.getEventQueue().iterateEvents().hasNext());
43      }
44  }
This page was automatically generated by Maven