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
      • SETUP_METHOD_NAME

        private static final java.lang.String SETUP_METHOD_NAME
        See Also:
        Constant Field Values
      • TEARDOWN_METHOD_NAME

        private static final java.lang.String TEARDOWN_METHOD_NAME
        See Also:
        Constant Field Values
      • EMPTY_OBJECT_ARRAY

        private static final java.lang.Object[] EMPTY_OBJECT_ARRAY
      • testClass

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

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

        private java.lang.reflect.Method setUpMethod
      • tearDownMethod

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

      • PojoTestSet

        public PojoTestSet​(java.lang.Class<?> testClass)
    • Method Detail

      • getTestName

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

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

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

        private void discoverTestMethods()
      • isNoArgsInstanceMethod

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

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

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