protected List<TestRule> getTestRules(Object target) {
        RuleCollector<TestRule> collector = new RuleCollector<TestRule>();
        getTestClass().collectAnnotatedMethodValues(target, Rule.class, TestRule.class, collector);
        getTestClass().collectAnnotatedFieldValues(target, Rule.class, TestRule.class, collector);
        return collector.result;
    }
protected List < TestRule > getTestRules ( Object target ) { RuleCollector < TestRule > collector = new RuleCollector < TestRule > ( ) ; getTestClass ( ) . collectAnnotatedMethodValues ( target , Rule . class , TestRule . class , collector ) ; getTestClass ( ) . collectAnnotatedFieldValues ( target , Rule . class , TestRule . class , collector ) ; return collector . result ; }
@param target the test case instance
@return a list of TestRules that should be applied when executing this
test