|
Eclipse JDT Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jdt.junit.JUnitCore
public class JUnitCore
Class for accessing JUnit support; all functionality is provided by static methods.
This class is not intended to be subclassed or instantiated by clients.
| Field Summary | |
|---|---|
static String |
JUNIT_CONTAINER_ID
ID of the JUnit classpath container. |
static IPath |
JUNIT3_CONTAINER_PATH
Path of the JUnit 3 classpath container. |
static IPath |
JUNIT4_CONTAINER_PATH
Path of the JUnit 4 classpath container. |
| Constructor Summary | |
|---|---|
JUnitCore()
|
|
| Method Summary | |
|---|---|
static void |
addTestRunListener(ITestRunListener listener)
Deprecated. As of 3.3, replaced by addTestRunListener(TestRunListener) |
static void |
addTestRunListener(TestRunListener listener)
Adds a listener for test runs. |
static IType[] |
findTestTypes(IJavaElement container,
IProgressMonitor monitor)
Finds types that contain JUnit tests in the given container. |
static void |
removeTestRunListener(ITestRunListener listener)
Deprecated. As of 3.3, replaced by removeTestRunListener(TestRunListener) |
static void |
removeTestRunListener(TestRunListener listener)
Removes a listener for test runs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String JUNIT_CONTAINER_ID
JUNIT3_CONTAINER_PATH,
JUNIT4_CONTAINER_PATH,
Constant Field Valuespublic static final IPath JUNIT3_CONTAINER_PATH
public static final IPath JUNIT4_CONTAINER_PATH
| Constructor Detail |
|---|
public JUnitCore()
| Method Detail |
|---|
public static void addTestRunListener(ITestRunListener listener)
addTestRunListener(TestRunListener)
listener - listener to be addedpublic static void removeTestRunListener(ITestRunListener listener)
removeTestRunListener(TestRunListener)
listener - listener to be removedpublic static void addTestRunListener(TestRunListener listener)
Note: If your plug-in should be loaded when a test run starts,
please contribute to the org.eclipse.jdt.junit.testRunListeners extension point instead.
listener - the listener to be addedpublic static void removeTestRunListener(TestRunListener listener)
listener - the listener to be removed
public static IType[] findTestTypes(IJavaElement container,
IProgressMonitor monitor)
throws CoreException,
OperationCanceledException
container - the containermonitor - the progress monitor used to report progress and request cancelation,
or null if none
CoreException - when a problem occurs while accessing container or its children
OperationCanceledException - if the operation has been canceled
|
Eclipse JDT Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2010 IBM Corporation and others. All rights reserved.