Package org.eclipse.jetty.toolchain.test
Class PropertyFlag
- java.lang.Object
-
- org.eclipse.jetty.toolchain.test.PropertyFlag
-
public final class PropertyFlag extends java.lang.Object
Flag indicating thatTest
is part of special group of tests.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
PropertyFlag()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
isEnabled
public static boolean isEnabled(java.lang.String property)
Returns flag indicating if-D<flag>
or-D<flag>=true
is 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
-
-