cbeust/testng — Issue #142: Configuration listener notified twice per event
Author: pniederw
Created: 2011-12-04 20:04:26+00:00
State: open

Gradle used to have a listener that implemented both ITestListener and org.testng.internal.IConfigurationListener and was registered with TestNG#addListener(Object). This worked fine even though TestNG#addListener(Object) didn't have any logic for dealing with IConfigurationListener. After updating to TestNG 6.2 and changing the implemented interface to org.testng.IConfigurationListener2, onConfigurationFailure() now gets called twice per event. (Note that TestNG#addListener(Object) now has logic for dealing with IConfigurationListener.) In the debugger I can see that the Gradle listener is contained twice in the list of listeners.