org.eclipse.jetty.toolchain.test
Class PropertyFlag

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

public final class PropertyFlag
extends Object

Flag indicating that Test is part of special group of tests.


Method Summary
static void assume(String property)
          Labels the test method as belonging to Stress testing.
static boolean isEnabled(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
 

Method Detail

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)
Labels the test method as belonging to Stress testing.

Checks for the existence of the "STRESS" system property, if found, it allows the test to execute. If not found, the test is flagged as ignored and returned.



Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.