Module org.junit.platform.engine
Class CompositeTestSource
java.lang.Object
org.junit.platform.engine.support.descriptor.CompositeTestSource
- All Implemented Interfaces:
Serializable,TestSource
@API(status=STABLE,
since="1.0")
public class CompositeTestSource
extends Object
implements TestSource
A
CompositeTestSource contains one or more TestSources.
CompositeTestSource and its sources are immutable.
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CompositeTestSourcefrom(Collection<? extends TestSource> sources) Create a newCompositeTestSourcebased on the supplied collection ofsources.final List<TestSource>Get an immutable list of the sources stored in thisCompositeTestSource.inthashCode()toString()
-
Method Details
-
from
Create a newCompositeTestSourcebased on the supplied collection ofsources.This constructor makes a defensive copy of the supplied collection and stores the sources as a list in the order in which they are returned by the collection's iterator.
- Parameters:
sources- the collection of sources to store in thisCompositeTestSource; nevernullor empty
-
getSources
Get an immutable list of the sources stored in thisCompositeTestSource.- Returns:
- the sources stored in this
CompositeTestSource; nevernull
-
equals
-
hashCode
public int hashCode() -
toString
-