|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.japano.PageNode
org.japano.pagenode.Test
public class Test
This tag is used to unit test jsp pages. The following source would test whether the output of the enclosed jpn:foo tag matches the regular expression "[0-9]+".
<jpn:test match="[0-9]+">
<jpn:foo/>
</jpn:test>
The ant task TestJSP supports
automatic testing of JSP pages including this tag.
TestJSP| Nested Class Summary | |
|---|---|
static class |
Test.Match
Defines the regular expression to match against. |
| Nested classes/interfaces inherited from class org.japano.PageNode |
|---|
PageNode.Output |
| Field Summary |
|---|
| Fields inherited from class org.japano.PageNode |
|---|
children, context, EMPTY, nodeId, parent |
| Constructor Summary | |
|---|---|
Test()
Creates a new instance of Test |
|
| Method Summary | |
|---|---|
void |
generate(Buffer out)
Generates this node The base implementation just calls PageNode.generateChildren(Buffer) |
void |
init()
Initializes the node. |
void |
setMatch(java.lang.String value)
The regular expression to match against. |
void |
setName(java.lang.String name)
The name of this test. |
void |
setPass(boolean pass)
Normally the test is passed when the test body output matches the expected value and the body evalutation does not result in an exception. |
| Methods inherited from class org.japano.PageNode |
|---|
findChildren, findParent, findRootNode, generateChildren, getChildren, getContext, getNodeId, getParent, recInit, release, setChildren, setContext, setNodeId, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Test()
| Method Detail |
|---|
public void setName(java.lang.String name)
public void setMatch(java.lang.String value)
public void setPass(boolean pass)
public void generate(Buffer out)
PageNodePageNode.generateChildren(Buffer)
generate in class PageNodepublic void init()
PageNode
init in class PageNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||