Class CargoTestSuite

  • All Implemented Interfaces:
    junit.framework.Test

    public class CargoTestSuite
    extends junit.framework.TestSuite
    Cargo test suite.
    • Field Detail

      • SYSTEM_PROPERTY_CONTAINER_IDS

        public static final String SYSTEM_PROPERTY_CONTAINER_IDS
        The system property for the container identifiers to run tests on.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CargoTestSuite

        public CargoTestSuite​(String suiteName)
        Initialize with the given suite name.
        Parameters:
        suiteName - Suite name.
    • Method Detail

      • addTestSuite

        public void addTestSuite​(Class<? extends junit.framework.Test> testClass,
                                 Validator[] validators)
        Add a given test suite.
        Parameters:
        testClass - Test class.
        validators - List of validators, to check if tests should be run on a given container.
      • addTestSuite

        public void addTestSuite​(Class<? extends junit.framework.Test> testClass,
                                 Validator[] validators,
                                 Set<String> excludedContainerIds)
        Add a given test suite.
        Parameters:
        testClass - Test class.
        validators - List of validators, to check if tests should be run on a given container.
        excludedContainerIds - Containers to exclude.