Package com.sun.javatest.exec
Class FeatureManager
java.lang.Object
com.sun.javatest.exec.FeatureManager
This class represents default feature manager.
It can be extended to set another behavior of features in JT Harness.
The method isEnabled may be overridden to change behavior.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean[]
static final int
Should the harness display test tree for test suite without working directorystatic final int
Should harness display Documentation tab for single teststatic final int
Show "check for template update" menu.static final int
Can this test suite be opened more than once within a harness? False allows any number of instances of the test suite to be opened.static final int
Can templates be created?static final int
Can someone load any template they want, even if WD_WITHOUT_TEMPLATE is enabled?static final int
Can templates be used?static final int
Ability to support only work directories with templates attached. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TEMPLATE_LOADING
public static final int TEMPLATE_LOADINGCan someone load any template they want, even if WD_WITHOUT_TEMPLATE is enabled?- See Also:
-
TEMPLATE_USAGE
public static final int TEMPLATE_USAGECan templates be used?- See Also:
-
TEMPLATE_CREATION
public static final int TEMPLATE_CREATIONCan templates be created?- See Also:
-
SHOW_TEMPLATE_UPDATE
public static final int SHOW_TEMPLATE_UPDATEShow "check for template update" menu.- See Also:
-
SINGLE_TEST_MANAGER
public static final int SINGLE_TEST_MANAGERCan this test suite be opened more than once within a harness? False allows any number of instances of the test suite to be opened.- See Also:
-
WD_WITHOUT_TEMPLATE
public static final int WD_WITHOUT_TEMPLATEAbility to support only work directories with templates attached.- See Also:
-
SHOW_DOCS_FOR_TEST
public static final int SHOW_DOCS_FOR_TESTShould harness display Documentation tab for single test- See Also:
-
NO_TREE_WITHOUT_WD
public static final int NO_TREE_WITHOUT_WDShould the harness display test tree for test suite without working directory- See Also:
-
featureToggles
protected boolean[] featureToggles
-
-
Constructor Details
-
FeatureManager
public FeatureManager()
-
-
Method Details
-
isEnabled
public boolean isEnabled(int feature) - Parameters:
feature
- one of TEMPLATE_USAGE, TEMPLATE_CREATION, AUTOPROPAGATE, SINGLE_TEST_MANAGER- Returns:
- true if this feature enabled, false otherwise
-