mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-24 17:47:38 +01:00
Always check for "testable" methods in listener consistency test
- Add check to overlooked test
This commit is contained in:
parent
598ee8e5c6
commit
37604e6a51
@ -57,7 +57,7 @@ public final class ListenerConsistencyTest {
|
||||
Set<String> events = new HashSet<>();
|
||||
for (Class<?> listener : LISTENERS) {
|
||||
for (Method method : listener.getDeclaredMethods()) {
|
||||
if (events.contains(method.getName())) {
|
||||
if (isTestableMethod(method) && events.contains(method.getName())) {
|
||||
fail("More than one method '" + method.getName() + "' exists (e.g. class: " + listener + ")");
|
||||
}
|
||||
events.add(method.getName());
|
||||
|
Loading…
Reference in New Issue
Block a user