Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.batik.test
Class DefaultTestSuite  view DefaultTestSuite download DefaultTestSuite.java

java.lang.Object
  extended byorg.apache.batik.test.AbstractTest
      extended byorg.apache.batik.test.DefaultTestSuite
All Implemented Interfaces:
Test, TestSuite

public class DefaultTestSuite
extends AbstractTest
implements TestSuite

Default implementation of the TestSuite interface.

Version:
$Id: DefaultTestSuite.java,v 1.7 2004/08/18 07:16:56 vhardy Exp $

Field Summary
private  java.lang.String name
          This Test's name
protected  java.util.Vector tests
          Stores the list of child tests
 
Fields inherited from class org.apache.batik.test.AbstractTest
id, parent
 
Constructor Summary
DefaultTestSuite()
           
 
Method Summary
 void addTest(Test test)
          Adds a Test to the suite
 int getChildrenCount()
          Returns the number of child tests
 Test[] getChildrenTests()
          Returns this suite's Test.
 java.lang.String getName()
          Returns this Test's name.
 void removeTest(Test test)
          Removes a Test from the suite.
 TestReport runImpl()
          Runs the tests and returns a report
 void setName(java.lang.String name)
          Sets this test's name
 
Methods inherited from class org.apache.batik.test.AbstractTest
assertEquals, assertEquals, assertNull, assertTrue, error, getId, getParent, getQualifiedId, reportError, reportException, reportSuccess, run, runImplBasic, setId, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.batik.test.Test
getId, getParent, getQualifiedId, run, setId, setParent
 

Field Detail

name

private java.lang.String name
This Test's name


tests

protected java.util.Vector tests
Stores the list of child tests

Constructor Detail

DefaultTestSuite

public DefaultTestSuite()
Method Detail

addTest

public void addTest(Test test)
Adds a Test to the suite

Specified by:
addTest in interface TestSuite

removeTest

public void removeTest(Test test)
Removes a Test from the suite.

Specified by:
removeTest in interface TestSuite

runImpl

public TestReport runImpl()
Runs the tests and returns a report

Overrides:
runImpl in class AbstractTest

getName

public java.lang.String getName()
Description copied from interface: Test
Returns this Test's name.

Specified by:
getName in interface Test
Overrides:
getName in class AbstractTest

setName

public void setName(java.lang.String name)
Description copied from class: AbstractTest
Sets this test's name

Overrides:
setName in class AbstractTest

getChildrenTests

public Test[] getChildrenTests()
Description copied from interface: TestSuite
Returns this suite's Test. This should not return a reference to any internal structure held by the TestSuite. For example, if an internal array is used, this shoudl return a copy of that array.

Specified by:
getChildrenTests in interface TestSuite

getChildrenCount

public int getChildrenCount()
Returns the number of child tests

Specified by:
getChildrenCount in interface TestSuite