Class PublicConstructorTest


  • public abstract class PublicConstructorTest
    extends java.lang.Object
    This JUnit test simply checks for public constructors on the list of classes that are returned by the getClasses() method.
    Version:
    $Id: $
    Author:
    Seth
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract java.util.List<java.lang.Class<? extends java.lang.Object>> getClasses()
      This method should return a list of classes that you wish to inspect for public constructors.
      void testPublicConstructors()
      testPublicConstructors
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PublicConstructorTest

        public PublicConstructorTest()
    • Method Detail

      • testPublicConstructors

        public void testPublicConstructors()
                                    throws java.lang.NoSuchMethodException,
                                           java.lang.Exception

        testPublicConstructors

        Throws:
        java.lang.NoSuchMethodException - if any.
        java.lang.Exception - if any.
      • getClasses

        protected abstract java.util.List<java.lang.Class<? extends java.lang.Object>> getClasses()
                                                                                           throws java.lang.Exception
        This method should return a list of classes that you wish to inspect for public constructors.
        Returns:
        a List object.
        Throws:
        java.lang.Exception - if any.