Class UnitTestPreferencesConstants

java.lang.Object
org.eclipse.unittest.internal.UnitTestPreferencesConstants

public class UnitTestPreferencesConstants extends Object
Defines constants which are used to refer to values in the plugin's preference store.
  • Field Details

    • DO_FILTER_STACK

      public static final String DO_FILTER_STACK
      Boolean preference controlling whether the failure stack should be filtered.
      See Also:
    • SHOW_ON_ERROR_ONLY

      public static final String SHOW_ON_ERROR_ONLY
      Boolean preference controlling whether the Unit Test view should be shown on errors only.
      See Also:
    • MAX_TEST_RUNS

      public static final String MAX_TEST_RUNS
      Maximum number of remembered test runs.
      See Also:
  • Method Details

    • serializeList

      public static String serializeList(String[] list)
      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

      public static String[] parseList(String listString)
      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