Plug-in test fails

Tell us what you think about our book and report any errata. Sample chapters are available at http://www.qualityeclipse.com/

(Note: Previous Editions were called "Eclipse: Building Commercial Quality Plugins")

Moderators: Eric Clayberg, Dan Rubel

Plug-in test fails

Postby pnye » Thu Sep 23, 2004 8:06 am

Running the plug-in test at 2.8.4 results in a failure with the message:

Class not found com.qualityeclipse.favorites.test.FavoritesViewTest

Using the Run wizzard for the test, examining the Source tab shows the source lookup path com.qualityeclipse.favorites.test listed.

A careful look for spelling errors reveals nothing out of place.

I assume JUnit's classpath is not guiding it to the appropriate place. If so where might that classpath be set?

Any help would be appreciated.
pnye
 

Example failure

Postby gdmccarty » Mon Jan 24, 2005 9:14 am

I have the same problem.
GregM
gdmccarty
 
Posts: 4
Joined: Mon Jan 24, 2005 9:10 am

Isn't life funny

Postby gdmccarty » Mon Jan 24, 2005 9:23 am

Well, I figured out the problem. I had it for the original sample and fixed it. It's outlined in the "unable to instantiate view'" thread.

Basically, you need a second constructor whose signature is

public FavoritesTestPlugin(IPluginDescriptor descriptor) {
super(descriptor);
plugin = this;
}
GregM
gdmccarty
 
Posts: 4
Joined: Mon Jan 24, 2005 9:10 am


Return to Book: Eclipse Plug-Ins (3rd Edition)

Who is online

Users browsing this forum: No registered users and 1 guest