org.opennms.test
Class PublicConstructorTest

java.lang.Object
  extended by org.opennms.test.PublicConstructorTest

public abstract class PublicConstructorTest
extends 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

Constructor Summary
PublicConstructorTest()
           
 
Method Summary
protected abstract  List<Class<? extends 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 NoSuchMethodException,
                                   Exception

testPublicConstructors

Throws:
NoSuchMethodException - if any.
Exception - if any.

getClasses

protected abstract List<Class<? extends Object>> getClasses()
                                                     throws Exception
This method should return a list of classes that you wish to inspect for public constructors.

Returns:
a List object.
Throws:
Exception - if any.


Copyright © 2011. All Rights Reserved.