Always check for "testable" methods in listener consistency test

- Add check to overlooked test
This commit is contained in:
ljacqu 2015-12-28 14:05:00 +01:00
parent 598ee8e5c6
commit 37604e6a51

View File

@ -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());