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 TypeMethodDescriptionboolean
static CompositeTestSource
from
(Collection<? extends TestSource> sources) Create a newCompositeTestSource
based on the supplied collection ofsources
.final List
<TestSource> Get an immutable list of the sources stored in thisCompositeTestSource
.int
hashCode()
toString()
-
Method Details
-
from
Create a newCompositeTestSource
based 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
; nevernull
or 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
-