@@ -178,7 +178,7 @@ protected TestRunner(
178
178
List <IClassListener > classListeners ,
179
179
Comparator <ITestNGMethod > comparator ,
180
180
DataProviderHolder otherHolder ,
181
- SuiteRunner suiteRunner ) {
181
+ ISuiteRunnerListener suiteRunner ) {
182
182
this .comparator = comparator ;
183
183
this .holder .merge (otherHolder );
184
184
init (
@@ -201,7 +201,7 @@ public TestRunner(
201
201
Collection <IInvokedMethodListener > invokedMethodListeners ,
202
202
List <IClassListener > classListeners ,
203
203
Comparator <ITestNGMethod > comparator ,
204
- SuiteRunner suiteRunner ) {
204
+ ISuiteRunnerListener suiteRunner ) {
205
205
this .comparator = comparator ;
206
206
init (
207
207
configuration ,
@@ -223,7 +223,7 @@ public TestRunner(
223
223
boolean skipFailedInvocationCounts ,
224
224
Collection <IInvokedMethodListener > invokedMethodListeners ,
225
225
List <IClassListener > classListeners ,
226
- SuiteRunner suiteRunner ) {
226
+ ISuiteRunnerListener suiteRunner ) {
227
227
this .comparator = Systematiser .getComparator ();
228
228
init (
229
229
configuration ,
@@ -246,7 +246,7 @@ private void init(
246
246
boolean skipFailedInvocationCounts ,
247
247
Collection <IInvokedMethodListener > invokedMethodListeners ,
248
248
List <IClassListener > classListeners ,
249
- SuiteRunner suiteRunner ) {
249
+ ISuiteRunnerListener suiteRunner ) {
250
250
m_configuration = configuration ;
251
251
m_xmlTest = test ;
252
252
m_suite = suite ;
@@ -257,8 +257,8 @@ private void init(
257
257
m_objectFactory = suite .getObjectFactory ();
258
258
setVerbose (test .getVerbose ());
259
259
if (suiteRunner == null ) {
260
- if (suite instanceof SuiteRunner ) {
261
- setExitCodeListener (((SuiteRunner ) suite ).getExitCodeListener ());
260
+ if (suite instanceof ISuiteRunnerListener ) {
261
+ setExitCodeListener (((ISuiteRunnerListener ) suite ).getExitCodeListener ());
262
262
}
263
263
} else {
264
264
setExitCodeListener (suiteRunner .getExitCodeListener ());
0 commit comments