|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.spockframework.runtime.SpecUtil
public final class SpecUtil
Utility methods related to specifications. Particularly useful when integrating Spock with other environments (e.g. Grails).
Method Summary | |
---|---|
static void |
checkIsRunnableSpec(Class<?> clazz)
|
static void |
checkIsSpec(Class<?> clazz)
Checks if the given class is a Spock specification (according to isSpec()), and throws an InvalidSpecException with a detailed explanation if it is not. |
static int |
getFeatureCount(Class<?> spec)
Returns the number of features contained in the given specification. |
static boolean |
isRunnableSpec(Class<?> clazz)
|
static boolean |
isSpec(Class<?> clazz)
Tells if the given class is a Spock specification. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isSpec(Class<?> clazz)
public static void checkIsSpec(Class<?> clazz)
public static boolean isRunnableSpec(Class<?> clazz)
public static void checkIsRunnableSpec(Class<?> clazz)
public static int getFeatureCount(Class<?> spec)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |