|
|||||||||||||||||||
Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover. | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
EmptyViewTest.java | - | 100% | 100% | 100% |
|
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 | 1 |
public void testMethods() |
25 |
{ |
|
26 | 1 |
assertNull(EmptyView.EMPTY_VIEW.getContainer()); |
27 | 1 |
EmptyView.EMPTY_VIEW.setContainer(EmptyView.EMPTY_VIEW); |
28 | 1 |
assertNull(EmptyView.EMPTY_VIEW.getContainer()); |
29 | 1 |
assertFalse(EmptyView.EMPTY_VIEW.isVisible()); |
30 | 1 |
assertNull(EmptyView.EMPTY_VIEW.uniqueId(null)); |
31 |
} |
|
32 |
|
|
33 | 1 |
public void testRender() throws IOException |
34 |
{ |
|
35 | 1 |
EmptyView.EMPTY_VIEW.render(context); |
36 | 1 |
assertEquals("nothing should have been rendered", -1, context.getRenderedInputStream().read()); |
37 |
} |
|
38 |
|
|
39 | 1 |
public void testParse() |
40 |
{ |
|
41 | 1 |
EmptyView.EMPTY_VIEW.parse(context); |
42 | 1 |
assertFalse("no events should have been posted", context.getEventQueue().iterateEvents().hasNext()); |
43 |
} |
|
44 |
} |
|
45 |
|
|