Hi,
I am having an issue using jUnit tests and handling exceptions in Java.
I created my testClass with both the annotations @RunWith(DevAppServerTestRunner.class) and @DevAppServerTest(TestConfig.class) since I need to test a method that use some properties configured in my appengine-web.xml file.
The problem comes when, after declaring a jUnit @Rule to define an Exception I want to test, I ran the test and got an error saying "The Rule myExceptionName must implement MethodRule or TestRule". That's pretty strange since the exception I declared is of type Expectedexception, a jUnit class tha already implements TestRule.
I suspect this issue has something to do with my @RunWith and @DevAppServerTest annotation because using another class without these the Rule implementation works(solution I can't use since I need to read some properties from appengine-web.xml).
Did anyone encounter something similar or have a clue on how to deal with this?