Package org.eclipse.jetty.toolchain.test
Class PropertyFlag
- java.lang.Object
-
- org.eclipse.jetty.toolchain.test.PropertyFlag
-
public final class PropertyFlag extends java.lang.ObjectFlag indicating thatTestis part of special group of tests.
-
-
Constructor Summary
Constructors Modifier Constructor Description privatePropertyFlag()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidassume(java.lang.String property)Junit Assumption based on the value of a System Property.static booleanisEnabled(java.lang.String property)Returns flag indicating if-D<flag>or-D<flag>=trueis enabled.
-
-
-
Method Detail
-
isEnabled
public static boolean isEnabled(java.lang.String property)
Returns flag indicating if-D<flag>or-D<flag>=trueis enabled.- Parameters:
property- name of the system property representing this flag- Returns:
- true if enabled
-
assume
public static void assume(java.lang.String property)
Junit Assumption based on the value of a System 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.- Parameters:
property- the system property to look for
-
-