Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Re: Using JUnit @Rule with Eclipse's test runner
Re: Using JUnit @Rule with Eclipse's test runner [message #882861] Thu, 07 June 2012 10:35
Dani Megert is currently offline Dani MegertFriend
Messages: 3801
Registered: July 2009
Senior Member
On 21.05.2012 18:02, Eric Rizzo wrote:
> Eclipse 3.7.2
> I just implemented an @Rule in some JUnit 4 tests, but when I run them
> in Eclipse the MethodRule methods are not being called. It's like the
> Eclipse test runner doesn't recognize the @Rule implementations and
> doesn't do anything special with fields that are annotated with @Rule.
> Is there some trick? Does Eclipse simply not support JUnit Rules?
Please file a bug report against JDT UI with a simple test case.

> Info on the @Rule annotation:
Previous Topic:Declared package does not match expected package
Next Topic:ClassNotFoundException
Goto Forum:

Current Time: Sat Jun 23 22:11:04 GMT 2018

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

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

Back to the top