Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » PDE JUnit Plugin - is this the place to ask on that matter?
PDE JUnit Plugin - is this the place to ask on that matter? [message #26453] Fri, 16 May 2003 13:08 Go to next message
Eclipse UserFriend
Originally posted by: junmar.web.de

Hi there,

I'm looking for information/support on the PDE JUnit Plugin. Is this the
place where I can address that?

cheers,
Martin
Re: PDE JUnit Plugin - is this the place to ask on that matter? [message #26545 is a reply to message #26453] Fri, 16 May 2003 13:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: adam_kiezun.ch.ibm.spam.protection.com

this is the right place

a.
PDE JUnit Plugin - "no test case found in..." [message #26706 is a reply to message #26453] Fri, 16 May 2003 14:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: junmar.web.de

Here we go,

according to the "Contributing to Eclipse" draft ("030410.pdf") I set up my
own TestCase to run jdt-related tests using the JDE JUnit plugin (and
thereby understanding the principles behind the plugin/Eclipse). The test
case is quite simple: Plugin plugin = ResourcesPlugin.getPlugin();
assertNotNull(plugin);

I always get the following error:

junit.framework.AssertionFailedError: No tests found in
test.de.mju.eclipse.junitTestCoverage.internal.TestJDTTypeAd apterFactory

The reported type is the one defining the test case (and extending
junit.framework.TestCase). The problem seems to be due to the TestSuite
constructor, where the while-loop

<cut>
while (Test.class.isAssignableFrom(superClass)) { // line 73
</cut>

is never entered since the condition always evals to false.
This is what I dont understand: debugging tells me that the passed
(final) Class object indeed has the 2 relevant test case methods. I
couldn't find any obvios cause such as configuration (at least during
plugin-building everything is fine), so I guess there must be hidden ones.
Has anyone encountered the same problem?

setup: Eclipse 2.1, pde-version 2.1.5 (also tried 2.1.3 and 2.1.4), junit
3.8 (Eclipse-shipped; also tried 3.7)

cheers,
Martin
Re: PDE JUnit Plugin - "no test case found in..." [message #27065 is a reply to message #26706] Sat, 17 May 2003 07:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: erich_gamma.oti.com

The following test passes. Can you please try
this code. If it still fails please file a bug
report against JDT UI.

--erich

import junit.framework.TestCase;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.Plugin;

public class FooTest extends TestCase {
public void testFoo() {
Plugin plugin = ResourcesPlugin.getPlugin();
assertNotNull(plugin);
}
}

Martin Jung wrote:
> Here we go,
>
> according to the "Contributing to Eclipse" draft ("030410.pdf") I set up my
> own TestCase to run jdt-related tests using the JDE JUnit plugin (and
> thereby understanding the principles behind the plugin/Eclipse). The test
> case is quite simple: Plugin plugin = ResourcesPlugin.getPlugin();
> assertNotNull(plugin);
>
> I always get the following error:
>
> junit.framework.AssertionFailedError: No tests found in
> test.de.mju.eclipse.junitTestCoverage.internal.TestJDTTypeAd apterFactory
>
> The reported type is the one defining the test case (and extending
> junit.framework.TestCase). The problem seems to be due to the TestSuite
> constructor, where the while-loop
>
> <cut>
> while (Test.class.isAssignableFrom(superClass)) { // line 73
> </cut>
>
> is never entered since the condition always evals to false.
> This is what I dont understand: debugging tells me that the passed
> (final) Class object indeed has the 2 relevant test case methods. I
> couldn't find any obvios cause such as configuration (at least during
> plugin-building everything is fine), so I guess there must be hidden ones.
> Has anyone encountered the same problem?
>
> setup: Eclipse 2.1, pde-version 2.1.5 (also tried 2.1.3 and 2.1.4), junit
> 3.8 (Eclipse-shipped; also tried 3.7)
>
> cheers,
> Martin
Re: PDE JUnit Plugin - "no test case found in..." - Feedback [message #35375 is a reply to message #27065] Thu, 22 May 2003 10:47 Go to previous message
Eclipse UserFriend
Originally posted by: dummy.dummy.de

Hi,

after finding that your test example was failing as well I thought it
hardly can't be a bug and the problem must very likely reside here on my
side.
So, I set up the plugin ecplipse project from scratch (the development
environment). Good news: it works now. Bad news: Deleted the 'old'
workspace permanently, so I have no way to identify the detail reason
afterwards.

cheers,
Martin


> The following test passes. Can you please try
> this code. If it still fails please file a bug
> report against JDT UI.
>
> --erich
>
> import junit.framework.TestCase;
> import org.eclipse.core.resources.ResourcesPlugin;
> import org.eclipse.core.runtime.Plugin;
>
> public class FooTest extends TestCase {
> public void testFoo() {
> Plugin plugin = ResourcesPlugin.getPlugin();
> assertNotNull(plugin);
> }
> }
>
Previous Topic:Tomcat 4.x won't work with JDK 1.4
Next Topic:How to open single Java file
Goto Forum:
  


Current Time: Sat May 10 23:37:38 EDT 2025

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

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

Back to the top