Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Running unit tests from org.eclipse.jdt.ui.tests.refactoring project
Running unit tests from org.eclipse.jdt.ui.tests.refactoring project [message #60986] Wed, 18 June 2003 14:49 Go to next message
Dmitry Stalnov is currently offline Dmitry StalnovFriend
Messages: 1
Registered: July 2009
Junior Member
Hello,

Is it possible to run a single test case(for example, InlineMethodTests)
from org.eclipse.jdt.ui.tests.refactoring project? When I try to do it using
Eclipe JUnit launcher I get NullPointerException in
JavaProjectHelper.createJavaProject because call to
ResourcesPlugin.getWorkspace() returns null. Looks like the test case
requires some prior initialization. If it can't be executed stand alone then
how can I run all JDT unit tests?

Thank you,
Dmitry
Re: Running unit tests from org.eclipse.jdt.ui.tests.refactoring project [message #61126 is a reply to message #60986] Wed, 18 June 2003 16:22 Go to previous message
Jerome Lanneluc is currently offline Jerome LannelucFriend
Messages: 572
Registered: July 2009
Senior Member
Dmitry,

You need to install the org.eclipse.jdt.pde.junit plugin
( http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/jdt- ui-home/plugins
/org.eclipse.jdt.junit/index.html) and run the test using a 'JUnit Plugin
Test' configuration.

Jerome

"Dmitry Stalnov" <dstalnov@fusionone.com> wrote in message
news:bcptr7$ql1$1@rogue.oti.com...
> Hello,
>
> Is it possible to run a single test case(for example, InlineMethodTests)
> from org.eclipse.jdt.ui.tests.refactoring project? When I try to do it
using
> Eclipe JUnit launcher I get NullPointerException in
> JavaProjectHelper.createJavaProject because call to
> ResourcesPlugin.getWorkspace() returns null. Looks like the test case
> requires some prior initialization. If it can't be executed stand alone
then
> how can I run all JDT unit tests?
>
> Thank you,
> Dmitry
>
>
>
Previous Topic:Debug Menu not Working
Next Topic:[ANN] release 1.3 of the metrics plugin is out
Goto Forum:
  


Current Time: Sun Oct 06 08:39:35 GMT 2024

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

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

Back to the top