Class PropertyFlag

java.lang.Object
org.eclipse.jetty.toolchain.test.PropertyFlag

public final class PropertyFlag extends Object
Flag indicating that Test is part of special group of tests.
  • Constructor Details

    • PropertyFlag

      private PropertyFlag()
  • Method Details

    • isEnabled

      public static boolean isEnabled(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(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