1 13 14 package org.eclipse.jdt.internal.junit.launcher; 15 16 17 18 public interface ITestKind { 19 static class NullTestKind extends TestKind { 20 private NullTestKind() { 21 super(null); 22 } 23 24 public boolean isNull() { 25 return true; 26 } 27 28 protected String getAttribute(String arg0) { 29 return null; 30 } 31 32 public ITestFinder getFinder() { 33 return ITestFinder.NULL; 34 } 35 36 public JUnitRuntimeClasspathEntry[] getClasspathEntries() { 37 return new JUnitRuntimeClasspathEntry[0]; 38 } 39 40 } 41 42 public static final TestKind NULL = new NullTestKind(); 43 44 public static final String ID = "id"; public static final String DISPLAY_NAME = "displayName"; public static final String FINDER_CLASS_NAME = "finderClass"; public static final String LOADER_PLUGIN_ID = "loaderPluginId"; public static final String LOADER_CLASS_NAME = "loaderClass"; public static final String PRECEDES = "precedesTestKind"; 51 public static final String RUNTIME_CLASSPATH_ENTRY = "runtimeClasspathEntry"; 53 public static final String CLASSPATH_PLUGIN_ID = "pluginId"; public static final String CLASSPATH_PATH_TO_JAR = "pathToJar"; 56 public abstract ITestFinder getFinder(); 57 58 public abstract String getId(); 59 public abstract String getDisplayName(); 60 public abstract String getFinderClassName(); 61 public abstract String getLoaderPluginId(); 62 public abstract String getLoaderClassName(); 63 public abstract String getPrecededKindId(); 64 65 66 public abstract boolean isNull(); 67 68 public abstract JUnitRuntimeClasspathEntry[] getClasspathEntries(); 69 70 } | Popular Tags |