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