Skip to content

Commit

Permalink
#215 Fix false @ClassRule warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tommysitu committed Jul 19, 2019
1 parent 4a7e973 commit 610eb5d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static boolean isAnnotatedWithRule(Description description) {
boolean isRule = false;
Field[] fields = description.getTestClass().getFields();
for (Field field : fields) {
if (field.getType().isAssignableFrom(HoverflyRule.class) && field.getAnnotation(Rule.class) != null) {
if (field.getType().equals(HoverflyRule.class) && field.getAnnotation(Rule.class) != null) {
isRule = true;
break;
}
Expand Down

0 comments on commit 610eb5d

Please sign in to comment.