Package org.eclipse.unittest.internal
Class UnitTestPreferencesConstants
java.lang.Object
org.eclipse.unittest.internal.UnitTestPreferencesConstants
Defines constants which are used to refer to values in the plugin's
preference store.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Boolean preference controlling whether the failure stack should be filtered.static final String
Maximum number of remembered test runs.static final String
Boolean preference controlling whether the Unit Test view should be shown on errors only. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Indicates if a filter patterns are to be applied on a stacktrace/error messagesstatic String[]
Parses the comma-separated string into an array of strings.static String
serializeList
(String[] list) Serializes the array of strings into one comma-separated string.static void
setFilterStack
(boolean filter) Sets up a value for the DO_FILTER_STACK preference
-
Field Details
-
DO_FILTER_STACK
Boolean preference controlling whether the failure stack should be filtered.- See Also:
-
SHOW_ON_ERROR_ONLY
Boolean preference controlling whether the Unit Test view should be shown on errors only.- See Also:
-
MAX_TEST_RUNS
Maximum number of remembered test runs.- See Also:
-
-
Method Details
-
serializeList
Serializes the array of strings into one comma-separated string.- Parameters:
list
- array of strings- Returns:
- a single string composed of the given list
-
parseList
Parses the comma-separated string into an array of strings.- Parameters:
listString
- a comma-separated string- Returns:
- an array of strings
-
getFilterStack
public static boolean getFilterStack()Indicates if a filter patterns are to be applied on a stacktrace/error messages- Returns:
true
in case the stacktrace is to be filtered, otherwise -false
-
setFilterStack
public static void setFilterStack(boolean filter) Sets up a value for the DO_FILTER_STACK preference- Parameters:
filter
- boolean indicating if a stacktrace is to be filtered
-