Class TestClassExpectation
- java.lang.Object
-
- de.bmiag.tapir.executiontest.expectation.plan.TestClassExpectation
-
- All Implemented Interfaces:
JavaClassBased
,Parameterized
,StructuralElementExpectation
public final class TestClassExpectation extends java.lang.Object implements JavaClassBased, Parameterized, StructuralElementExpectation
An expectation concerning aTestClass
.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
- See Also:
TestClass
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestClassExpectation.Builder
Builds instances of typeTestClassExpectation
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TestClassExpectation
build(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<TestClassExpectation.Builder> init)
Creates an immutable instance of TestClassExpectation.TestClassExpectation
copy(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<TestClassExpectation.Builder> init)
Creates an immutable copy of this instance.boolean
equals(java.lang.Object obj)
java.lang.Class<?>
getJavaClass()
The underlying java class.java.util.List<TestParameterExpectation>
getParameters()
Returns the expected parameters.java.util.List<TestStepExpectation>
getSteps()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getSteps
public java.util.List<TestStepExpectation> getSteps()
- Returns:
- The value of the
steps
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
-
getParameters
public java.util.List<TestParameterExpectation> getParameters()
Description copied from interface:Parameterized
Returns the expected parameters.- Specified by:
getParameters
in interfaceParameterized
- Returns:
- The value of the
parameters
attribute
-
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 TestClassExpectation build(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<TestClassExpectation.Builder> init)
Creates an immutable instance of TestClassExpectation. The values can be initialized by using the init parameter.- Parameters:
init
- The initializer- Returns:
- An immutable TestClassExpectation instance
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-
copy
public TestClassExpectation copy(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<TestClassExpectation.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 TestClassExpectation instance
-
-