Class PojoTestSet

  • All Implemented Interfaces:
    SurefireTestSet

    public class PojoTestSet
    extends java.lang.Object
    implements SurefireTestSet
    Executes a JUnit3 test class
    • Field Detail

      • 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 final java.lang.Object testObject
      • testClass

        private final java.lang.Class<?> testClass
      • testMethods

        private java.util.List<java.lang.reflect.Method> testMethods
      • setUpMethod

        private java.lang.reflect.Method setUpMethod
      • tearDownMethod

        private java.lang.reflect.Method tearDownMethod
    • Method Detail

      • executeTestMethods

        private void executeTestMethods​(RunListener reportManager)
      • executeTestMethod

        private boolean executeTestMethod​(java.lang.reflect.Method method,
                                          java.lang.Object[] args,
                                          RunListener reportManager)
      • getTestName

        private java.lang.String getTestName​(java.lang.String testMethodName)
      • setUpFixture

        private void setUpFixture()
                           throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • tearDownFixture

        private void tearDownFixture()
                              throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • discoverTestMethods

        private void discoverTestMethods()
      • isValidTestMethod

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

        private java.lang.Class<?> getTestClass()