Package org.opennms.test
Class PublicConstructorTest
- java.lang.Object
-
- org.opennms.test.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 thegetClasses()
method.- Version:
- $Id: $
- Author:
- Seth
-
-
Constructor Summary
Constructors Constructor Description PublicConstructorTest()
-
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
-
-
-
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.
-
-