Package de.bmiag.tapir.execution.model
Class TestSuite
- java.lang.Object
-
- de.bmiag.tapir.execution.model.TestSuite
-
- All Implemented Interfaces:
Documentable
,ExecutionModelElement
,Identifiable
,JavaClassBased
,NamedElement
,Parallelizable
,StructuralElement
,StructuralElementContainer
,Taggable
public final class TestSuite extends java.lang.Object implements StructuralElement, Documentable, NamedElement, Parallelizable, JavaClassBased, Identifiable, StructuralElementContainer
TestSuite
represents a test suite which contains other test suites or test classes.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestSuite.Builder
Builds instances of typeTestSuite
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TestSuite
build(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<TestSuite.Builder> init)
Creates an immutable instance of TestSuite.TestSuite
copy(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<TestSuite.Builder> init)
Creates an immutable copy of this instance.boolean
equals(java.lang.Object obj)
java.util.List<StructuralElement>
getChildren()
Returns the children of this containerjava.util.Optional<java.lang.String>
getDescription()
Returns a description which is more detailed than the title.java.lang.Integer
getId()
Returns the id.java.util.List<java.lang.String>
getIssues()
Returns the associated issues of a bugtracking tooljava.lang.Class<?>
getJavaClass()
The underlying java class.java.lang.String
getName()
Returns the name.StructuralElementContainer
getParent()
Returns the parentelement
.java.util.List<java.lang.String>
getTags()
Returns the associated tags.java.util.Optional<java.lang.String>
getTitle()
Returns the title.int
hashCode()
boolean
isArtificial()
boolean
isParallelized()
Returns true if the execution should be parallelized.boolean
isProceedOnFailure()
void
setChildren(java.util.List<StructuralElement> children)
Sets the value of thechildren
attributejava.lang.String
toString()
-
-
-
Method Detail
-
isProceedOnFailure
public boolean isProceedOnFailure()
- Returns:
- The value of the
proceedOnFailure
attribute
-
isArtificial
public boolean isArtificial()
- Returns:
- The value of the
artificial
attribute
-
getParent
public StructuralElementContainer getParent()
Description copied from interface:StructuralElement
Returns the parentelement
.- Specified by:
getParent
in interfaceStructuralElement
- Returns:
- The value of the
parent
attribute
-
getJavaClass
public java.lang.Class<?> getJavaClass()
Description copied from interface:JavaClassBased
The underlying java class.- Specified by:
getJavaClass
in interfaceJavaClassBased
- Returns:
- The value of the
javaClass
attribute
-
getTags
public java.util.List<java.lang.String> getTags()
Description copied from interface:Taggable
Returns the associated tags.
-
getIssues
public java.util.List<java.lang.String> getIssues()
Description copied from interface:Taggable
Returns the associated issues of a bugtracking tool
-
getTitle
public java.util.Optional<java.lang.String> getTitle()
Description copied from interface:Documentable
Returns the title. The title should be short like a headline.- Specified by:
getTitle
in interfaceDocumentable
- Returns:
- The value of the
title
attribute
-
getDescription
public java.util.Optional<java.lang.String> getDescription()
Description copied from interface:Documentable
Returns a description which is more detailed than the title.- Specified by:
getDescription
in interfaceDocumentable
- Returns:
- The value of the
description
attribute
-
getName
public java.lang.String getName()
Description copied from interface:NamedElement
Returns the name.- Specified by:
getName
in interfaceNamedElement
- Returns:
- The value of the
name
attribute
-
isParallelized
public boolean isParallelized()
Description copied from interface:Parallelizable
Returns true if the execution should be parallelized.- Specified by:
isParallelized
in interfaceParallelizable
- Returns:
- The value of the
parallelized
attribute
-
getId
public java.lang.Integer getId()
Description copied from interface:Identifiable
Returns the id. The id has to be unique in an execution plan.- Specified by:
getId
in interfaceIdentifiable
- Returns:
- The value of the
id
attribute
-
getChildren
public java.util.List<StructuralElement> getChildren()
Description copied from interface:StructuralElementContainer
Returns the children of this container- Specified by:
getChildren
in interfaceStructuralElementContainer
- Returns:
- The value of the
children
attribute
-
setChildren
public void setChildren(java.util.List<StructuralElement> children)
Sets the value of thechildren
attribute- Parameters:
children
- the children
-
equals
@Pure public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
@Pure public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
@Pure public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
build
public static TestSuite build(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<TestSuite.Builder> init)
Creates an immutable instance of TestSuite. The values can be initialized by using the init parameter.- Parameters:
init
- The initializer- Returns:
- An immutable TestSuite instance
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-
copy
public TestSuite copy(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<TestSuite.Builder> init)
Creates an immutable copy of this instance. Uses accessors to get values to initialize the new immutable instance. The values can be modified by using the init parameter.- Parameters:
init
- The initializer- Returns:
- A copied immutable TestSuite instance
-
-