org.apache.maven.surefire.testset
Class PojoTestSet

java.lang.Object
  extended by org.apache.maven.surefire.testset.AbstractTestSet
      extended by org.apache.maven.surefire.testset.PojoTestSet
All Implemented Interfaces:
SurefireTestSet

public class PojoTestSet
extends AbstractTestSet


Field Summary
private  java.util.ResourceBundle bundle
           
private static java.lang.Object[] EMPTY_OBJECT_ARRAY
           
private static java.lang.String TEST_METHOD_PREFIX
           
protected  java.util.List testMethods
           
private  java.lang.Object testObject
           
 
Constructor Summary
PojoTestSet(java.lang.Class testClass)
           
 
Method Summary
private  void discoverTestMethods()
           
 void execute(ReporterManager reportManager, java.lang.ClassLoader loader)
           
protected  boolean executeTestMethod(java.lang.reflect.Method method, java.lang.Object[] args, ReporterManager reportManager)
           
protected  void executeTestMethods(ReporterManager reportManager)
           
 int getTestCount()
           
 java.lang.String getTestName(java.lang.String testMethodName)
           
private static boolean isValidTestMethod(java.lang.reflect.Method m)
           
 void setUpFixture()
           
 void tearDownFixture()
           
 
Methods inherited from class org.apache.maven.surefire.testset.AbstractTestSet
getName, getTestClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bundle

private java.util.ResourceBundle bundle

TEST_METHOD_PREFIX

private static final java.lang.String TEST_METHOD_PREFIX
See Also:
Constant Field Values

EMPTY_OBJECT_ARRAY

private static final java.lang.Object[] EMPTY_OBJECT_ARRAY

testObject

private java.lang.Object testObject

testMethods

protected java.util.List testMethods
Constructor Detail

PojoTestSet

public PojoTestSet(java.lang.Class testClass)
            throws TestSetFailedException
Throws:
TestSetFailedException
Method Detail

execute

public void execute(ReporterManager reportManager,
                    java.lang.ClassLoader loader)
             throws TestSetFailedException
Throws:
TestSetFailedException

executeTestMethods

protected void executeTestMethods(ReporterManager reportManager)

executeTestMethod

protected boolean executeTestMethod(java.lang.reflect.Method method,
                                    java.lang.Object[] args,
                                    ReporterManager reportManager)

getTestName

public java.lang.String getTestName(java.lang.String testMethodName)

setUpFixture

public void setUpFixture()

tearDownFixture

public void tearDownFixture()

getTestCount

public int getTestCount()
                 throws TestSetFailedException
Throws:
TestSetFailedException

discoverTestMethods

private void discoverTestMethods()

isValidTestMethod

private static boolean isValidTestMethod(java.lang.reflect.Method m)