All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tatools.sunshine.testng.SunshineTestNG Maven / Gradle / Ivy

There is a newer version: 0.7.0
Show newest version
package org.tatools.sunshine.testng;

import org.testng.ISuite;
import org.testng.TestNG;

import java.util.List;

/**
 * The {@link SunshineTestNG} class is the default configuration of TestNG defined for Sunshine.
 *
 * @author Dmytro Serdiuk ([email protected])
 * @version $Id: b460d8e9135bed573f56917642ba5335313ef5c6 $
 * @since 0.2
 */
final class SunshineTestNG extends TestNG {

    private final List database;

    /**
     * Constructs the instance of TestNG without default listeners and with 0 verbose mode (no logs). All executed
     * suites will be saved to a given list.
     *
     * @param suitesHolder the list to store suites
     */
    SunshineTestNG(List suitesHolder) {
        super(false);
        this.database = suitesHolder;
        this.setVerbose(0);
    }

    @Override
    protected List runSuites() {
        final List suites = super.runSuites();
        this.database.addAll(suites);
        return suites;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy