org.apache.chemistry.opencmis.tck.impl
Class AbstractCmisTestGroup

java.lang.Object
  extended by org.apache.chemistry.opencmis.tck.impl.AbstractCmisTestGroup
All Implemented Interfaces:
CmisTestGroup
Direct Known Subclasses:
AbstractSessionTestGroup, WrapperCmisTestGroup

public abstract class AbstractCmisTestGroup
extends Object
implements CmisTestGroup

Base class for test groups.


Constructor Summary
AbstractCmisTestGroup()
           
 
Method Summary
 void addTest(CmisTest test)
           
 String getDescription()
          Returns the description of the test group.
 String getName()
          Returns the name of the test group.
protected  Map<String,String> getParameters()
           
protected  CmisTestProgressMonitor getProgressMonitor()
           
 List<CmisTest> getTests()
          Returns the all tests in this group.
 void init(Map<String,String> parameters)
          Initializes the test group with test parameters.
 boolean isEnabled()
          Returns if the test group is enabled or not.
 void junit()
           
protected  void postRun()
           
protected  void postTest(CmisTest test)
           
protected  void preRun()
           
protected  void preTest(CmisTest test)
           
 void run()
          Runs all enabled tests in this group.
 void setDescription(String description)
           
 void setEnabled(boolean enabled)
          Enables or disables this test group.
 void setName(String name)
           
 void setProgressMonitor(CmisTestProgressMonitor progressMonitor)
          Sets the progress monitor that should be used during a run.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCmisTestGroup

public AbstractCmisTestGroup()
Method Detail

init

public void init(Map<String,String> parameters)
          throws Exception
Description copied from interface: CmisTestGroup
Initializes the test group with test parameters.

Specified by:
init in interface CmisTestGroup
Throws:
Exception

getParameters

protected Map<String,String> getParameters()

getName

public String getName()
Description copied from interface: CmisTestGroup
Returns the name of the test group.

Specified by:
getName in interface CmisTestGroup

setName

public void setName(String name)

getDescription

public String getDescription()
Description copied from interface: CmisTestGroup
Returns the description of the test group.

Specified by:
getDescription in interface CmisTestGroup

setDescription

public void setDescription(String description)

getTests

public List<CmisTest> getTests()
Description copied from interface: CmisTestGroup
Returns the all tests in this group.

Specified by:
getTests in interface CmisTestGroup

addTest

public void addTest(CmisTest test)
             throws Exception
Throws:
Exception

setProgressMonitor

public void setProgressMonitor(CmisTestProgressMonitor progressMonitor)
Description copied from interface: CmisTestGroup
Sets the progress monitor that should be used during a run.

Specified by:
setProgressMonitor in interface CmisTestGroup

getProgressMonitor

protected CmisTestProgressMonitor getProgressMonitor()

run

public void run()
         throws Exception
Description copied from interface: CmisTestGroup
Runs all enabled tests in this group.

Specified by:
run in interface CmisTestGroup
Throws:
Exception

junit

public void junit()

preRun

protected void preRun()

postRun

protected void postRun()

preTest

protected void preTest(CmisTest test)

postTest

protected void postTest(CmisTest test)

isEnabled

public boolean isEnabled()
Description copied from interface: CmisTestGroup
Returns if the test group is enabled or not.

Specified by:
isEnabled in interface CmisTestGroup

setEnabled

public void setEnabled(boolean enabled)
Description copied from interface: CmisTestGroup
Enables or disables this test group.

Specified by:
setEnabled in interface CmisTestGroup


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.