1 12 package org.eclipse.jdt.internal.junit.ui; 13 14 import java.util.Arrays ; 15 import java.util.List ; 16 17 20 public class JUnitPreferencesConstants { 21 25 public static final String DO_FILTER_STACK= JUnitPlugin.PLUGIN_ID + ".do_filter_stack"; 27 31 public static final String SHOW_ON_ERROR_ONLY= JUnitPlugin.PLUGIN_ID + ".show_on_error"; 33 37 public static final String ENABLE_ASSERTIONS= JUnitPlugin.PLUGIN_ID + ".enable_assertions"; 39 43 public static final String PREF_ACTIVE_FILTERS_LIST = JUnitPlugin.PLUGIN_ID + ".active_filters"; 45 49 public static final String PREF_INACTIVE_FILTERS_LIST = JUnitPlugin.PLUGIN_ID + ".inactive_filters"; 51 54 public static final String MAX_TEST_RUNS= JUnitPlugin.PLUGIN_ID + ".max_test_runs"; 56 59 public static final String JUNIT3_JAVADOC= JUnitPlugin.PLUGIN_ID + ".junit3.javadoclocation"; 61 62 65 public static final String JUNIT4_JAVADOC= JUnitPlugin.PLUGIN_ID + ".junit4.javadoclocation"; 67 68 private static final String [] fgDefaultFilterPatterns= new String [] { 69 "org.eclipse.jdt.internal.junit.runner.*", "org.eclipse.jdt.internal.junit4.runner.*", "org.eclipse.jdt.internal.junit.ui.*", "junit.framework.TestCase", "junit.framework.TestResult", "junit.framework.TestResult$1", "junit.framework.TestSuite", "junit.framework.Assert", "org.junit.*", "java.lang.reflect.Method.invoke", "sun.reflect.*", }; 81 82 private JUnitPreferencesConstants() { 83 } 85 86 91 public static List createDefaultStackFiltersList() { 92 return Arrays.asList(fgDefaultFilterPatterns); 93 } 94 95 102 public static String serializeList(String [] list) { 103 if (list == null) 104 return ""; 106 StringBuffer buffer= new StringBuffer (); 107 for (int i= 0; i < list.length; i++) { 108 if (i > 0) 109 buffer.append(','); 110 111 buffer.append(list[i]); 112 } 113 return buffer.toString(); 114 } 115 } 116 | Popular Tags |