|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.test.TestUtils
public final class TestUtils
Utilities for unit tests
Method Summary | |
---|---|
static File |
getResource(Class baseClass,
String path)
Search for a resource in the classpath. |
static File |
getResource(String path)
Search for a test resource in the classpath. |
static boolean |
hasOnlyPrivateConstructors(Class clazz)
Asserts that all constructors are private, usually for helper classes with only static methods. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static File getResource(String path)
path
- the starting slash is optional
public static File getResource(Class baseClass, String path)
public static boolean hasOnlyPrivateConstructors(Class clazz)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |