Modifier and Type | Method and Description |
---|---|
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.
|
public static File getResource(String path)
path
- the starting slash is optionalpublic static File getResource(Class baseClass, String path)
public static boolean hasOnlyPrivateConstructors(Class clazz)
Copyright © 2009–2015 SonarSource. All rights reserved.