Hi AJ,

In the Restlet distribution, there is a "/src/com.noelios.restlet.test"
directory that contains a plug-in project that serves as a suite of JUnit
tests. It is working fine within Eclipse, even when I run the tests with
"Run as JUnit test case...".

I'm not sure what goes wrong in your case. Could you give me detailed steps
to reproduce, or a sample project. 

BTW, in order to have a full Eclipse plug-in project, you need a bit more
that a MANIFEST.MF file. Some special entries are also added to .project.
The best way to convert a Java project into a Plug-in project is to use "PDE
Tools/Convert Projects to Plug-in Projects..." menu entry.

Best regards,
Jerome  

> -----Message d'origine-----
> De : A.J. Barnes [mailto:[EMAIL PROTECTED] 
> Envoyé : mardi 24 octobre 2006 19:44
> À : [email protected]
> Objet : RE: Eclipse again
> 
> I think the big difference between where are may be that (for 
> you code) 
> you were choosing to run it as a Java Application or SWT Application. 
> Would that be right - when I choose that option with your code (from 
> inside my test plugin still routing through the plugin under test) it 
> works, but when I run my test as a a plugin JUnit test it fails. 
> 
> Definitely is a plugin, I'm only adjusting the build path via the 
> MANIFEST.MF panel, and I have been using the flash UI to resolve 
> dependancies in MANIFEST.MF but when I run my plugin tests the splash 
> screen pops up and then I get the SEVERE problem in the 
> console window. 
> 
> AJ 
> 
>  Quoting Jerome Louvel <[EMAIL PROTECTED]>: 
> 
> > 
> > Hi AJ, 
> > 
> > You must be missing one step. It works fine for me, without 
> any buddy 
> > class 
> > loading. It is essential that you create a "Plugin-project" 
> and not a 
> > simple 
> > "Java project". Then specify the dependencies in the 
> MANIFEST.MF (nice 
> > UI 
> > available) and that should be all. 
> > 
> > I've just done the test gain and attached a sample project 
> using the 
> > HTTP 
> > client (similar to tutorial example 2). Let me know if it works for 
> > you. 
> > 
> > Best regards, 
> > Jerome 
> > 
> 
> 

Reply via email to