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.

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 Dec 18 16:34:14 GMT 2014

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

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