Class PropertyFlag


  • public final class PropertyFlag
    extends java.lang.Object
    Flag indicating that Test 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PropertyFlag

        private PropertyFlag()
    • 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