org.znerd.util.test
Class TestUtils
java.lang.Object
org.znerd.util.test.TestUtils
public class TestUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
testUtilityClassConstructor
public static final void testUtilityClassConstructor(Class<?> clazz)
throws IllegalArgumentException,
TestFailedException
- Tests if the specified utility class has a matching constructor. The following is checked:
- There must be exactly 1 constructor.
- This constructor must be marked
private.
- Invoking the constructor should not throw any exception.
- Parameters:
clazz
- The class to check, should not be null
.
- Throws:
IllegalArgumentException
- if clazz == null
.
TestFailedException
- In case an issue is found.
Copyright © 2011-2012. All Rights Reserved.