org.apache.commons.jelly.tags.junit
Class SuiteTag

java.lang.Object
  extended by org.apache.commons.jelly.TagSupport
      extended by org.apache.commons.jelly.tags.junit.SuiteTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class SuiteTag
extends org.apache.commons.jelly.TagSupport

Represents a collection of TestCases.. This tag is analagous to JUnit's TestSuite class.

Version:
$Revision: 155420 $
Author:
James Strachan

Field Summary
private  java.lang.String name
          the name of the test suite to create
private  junit.framework.TestSuite suite
          the test suite this tag created
private  java.lang.String var
          the name of the variable of the test suite
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
SuiteTag()
           
 
Method Summary
 void addTest(junit.framework.Test test)
          Adds a new Test to this suite
protected  junit.framework.TestSuite createSuite()
          Factory method to create a new TestSuite
 void doTag(org.apache.commons.jelly.XMLOutput output)
           
 java.lang.String getName()
           
 junit.framework.TestSuite getSuite()
           
 void setName(java.lang.String name)
          Sets the name of this test suite
 void setVar(java.lang.String var)
          Sets the name of the test suite whichi is exported
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

suite

private junit.framework.TestSuite suite
the test suite this tag created


var

private java.lang.String var
the name of the variable of the test suite


name

private java.lang.String name
the name of the test suite to create

Constructor Detail

SuiteTag

public SuiteTag()
Method Detail

addTest

public void addTest(junit.framework.Test test)
Adds a new Test to this suite


doTag

public void doTag(org.apache.commons.jelly.XMLOutput output)
           throws org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.JellyTagException

getSuite

public junit.framework.TestSuite getSuite()

setVar

public void setVar(java.lang.String var)
Sets the name of the test suite whichi is exported


getName

public java.lang.String getName()
Returns:
the name of this test suite

setName

public void setName(java.lang.String name)
Sets the name of this test suite


createSuite

protected junit.framework.TestSuite createSuite()
Factory method to create a new TestSuite