Skip to content

Commit

Permalink
Disallow imports of org.mockito.ArgumentMatchers as well as methods.
Browse files Browse the repository at this point in the history
Previously we disallowed methods in ArgumentMatchers, but not the class
itself.
  • Loading branch information
sjudd committed Dec 9, 2017
1 parent dad8e89 commit ef9b89a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@

<!-- ArgumentMatchers isn't available internally, the same methods are available on org.mockito.Mockito. -->
<module name="IllegalImport">
<property name="illegalClasses" value="org\.mockito\.ArgumentMatchers\..*" />
<property name="illegalClasses" value="org\.mockito\.ArgumentMatchers.*" />
<property name="regexp" value="true" />
<message key="import.illegal" value="Import from illegal class - {0}. Use org.mockito.Mockito to statically import matcher methods." />
</module>
Expand Down

0 comments on commit ef9b89a

Please sign in to comment.