Class DefaultListenerFactory

    • Constructor Detail

      • DefaultListenerFactory

        public DefaultListenerFactory()
    • Method Detail

      • createListener

        public ITestNGListener createListener​(java.lang.Class<? extends ITestNGListener> listenerClass)
        Description copied from interface: ITestNGListenerFactory
        Create and return an instance of the listener class passed in parameter. Return null if you want to use the default factory.
        Specified by:
        createListener in interface ITestNGListenerFactory
        Parameters:
        listenerClass - The class of listener to create
        Returns:
        The created listener