Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » how to observe junit tests
how to observe junit tests [message #592476] Fri, 27 February 2009 10:04
sana is currently offline sanaFriend
Messages: 17
Registered: July 2009
Junior Member
Hi,

I have developed a plugin using eclipse 3.2, and now i want to test it
using junit tests. For that, i have added an extension point in the
plugin.xml file. The listener class implements the ITestRunListener
interface. How can i test that the following extension point is registered
properly.

the plugin.xml entry looks like :

<extension point = " org.eclipse.jdt.junit.TestRunListener">
<testRunListener class = "junitTests.ObserveTests"/>

the listener class looks like:
import org.eclipse.jdt.junit.ITestRunListener;
public class ObserveTests implements ITestRunListener{

public void testFailed(int status, String testId, String testName, String
trace){
System.out.println(testName);
}

---------------------------
thanks for any help,
Previous Topic:Target 3.4 and 3.5 P2 APIs despite APi changes - fragments?
Next Topic:Dynamic Help in Modal Dialogs
Goto Forum:
  


Current Time: Thu Apr 25 09:18:49 GMT 2024

Powered by FUDForum. Page generated in 0.03107 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top