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: 3802
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.

Dani
>
> Info on the @Rule annotation: http://junit.org/node/580
Previous Topic:Declared package does not match expected package
Next Topic:ClassNotFoundException
Goto Forum:
  


Current Time: Thu Apr 18 23:19:56 GMT 2024

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

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

Back to the top