public final class PropertyFlag
extends java.lang.Object
Test
is part of special group of tests.Modifier | Constructor and Description |
---|---|
private |
PropertyFlag() |
Modifier and Type | Method and Description |
---|---|
static void |
assume(java.lang.String property)
Junit Assumption based on the value of a System Property.
|
static boolean |
isEnabled(java.lang.String property)
Returns flag indicating if
-D<flag> or -D<flag>=true is enabled. |
public static boolean isEnabled(java.lang.String property)
-D<flag>
or -D<flag>=true
is enabled.property
- name of the system property representing this flagpublic static void assume(java.lang.String property)
If property is found, with no value, then it assumed to be true. Otherwise the value is parsed a
Boolean.parseBoolean(String)
and used for junit assume logic.
property
- the system property to look for