mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-08 03:29:41 +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<>();
|
Set<String> events = new HashSet<>();
|
||||||
for (Class<?> listener : LISTENERS) {
|
for (Class<?> listener : LISTENERS) {
|
||||||
for (Method method : listener.getDeclaredMethods()) {
|
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 + ")");
|
fail("More than one method '" + method.getName() + "' exists (e.g. class: " + listener + ")");
|
||||||
}
|
}
|
||||||
events.add(method.getName());
|
events.add(method.getName());
|
||||||
|
Loading…
Reference in New Issue
Block a user