private ArrayList < RunListener > instantiateRunListeners ( ) throws Exception { ArrayList < RunListener > instances = new ArrayList <> ( ) ; if ( runListeners != null ) { for ( String className : Arrays . asList ( runListeners . split ( "," ) ) ) { instances . add ( ( RunListener ) this . instantiate ( className ) . newInstance ( ) ) ; } } return instances ; }
Generates JUnit 4 RunListener instances for any user defined RunListeners