if there is any method annotated with @classrule then it must return an implementation of testrule this case has been added with issue # 1019 concode_field_sep MethodRule temporaryFolder concode_elem_sep Object arbitraryObject concode_elem_sep MethodRule classRule concode_elem_sep List<Throwable> errors concode_elem_sep TestRule temporaryFolder concode_elem_sep MethodRule someMethodRule concode_field_sep void acceptStaticTestRuleThatIsAlsoClassRule concode_elem_sep void methodRejectNonStaticClassRule concode_elem_sep void rejectClassRuleThatReturnsImplementationOfMethodRule concode_elem_sep void methodRejectArbitraryObjectWithRuleAnnotation concode_elem_sep void acceptMethodRule concode_elem_sep void methodAcceptMethodRuleMethod concode_elem_sep Object getArbitraryObject concode_elem_sep void acceptMethodNonStaticTestRule concode_elem_sep void acceptMethodStaticTestRuleThatIsAlsoClassRule concode_elem_sep void rejectProtectedClassRule concode_elem_sep MethodRule methodRule concode_elem_sep void rejectMethodStaticMethodRule concode_elem_sep void rejectNonStaticClassRule concode_elem_sep TestRule getTemporaryFolder concode_elem_sep TestRule getTemporaryFolder concode_elem_sep TestRule getTemporaryFolder concode_elem_sep TestRule getTemporaryFolder concode_elem_sep TestRule getTemporaryFolder concode_elem_sep MethodRule getTemporaryFolder concode_elem_sep void rejectStaticMethodRule concode_elem_sep void rejectStaticTestRule concode_elem_sep void assertNumberOfErrors concode_elem_sep Statement apply concode_elem_sep Statement apply concode_elem_sep Statement apply concode_elem_sep void rejectClassRuleIsAnArbitraryObject concode_elem_sep MethodRule getSomeMethodRule concode_elem_sep void rejectClassRuleThatIsImplemetationOfMethodRule concode_elem_sep void rejectArbitraryObjectWithRuleAnnotation concode_elem_sep void rejectMethodStaticTestRule concode_elem_sep void assertOneErrorWithMessage concode_elem_sep void methodRejectProtectedClassRule concode_elem_sep Object arbitraryObject concode_elem_sep void acceptNonStaticTestRule concode_elem_sep void rejectClassRuleInNonPublicClass
void function ( ) { TestClass loc0 = new TestClass ( TestWithClassRuleMethodReturnsAnArbitraryObject . class ) ; CLASS_RULE_METHOD_VALIDATOR . validate ( loc0 , errors ) ; assertOneErrorWithMessage ( "srini_string" ) ; }