Package org.apache.activemq.junit
Class RepeatStatement.Builder
java.lang.Object
org.apache.activemq.junit.RepeatStatement.Builder
- Enclosing class:
- RepeatStatement
Builder for
Repeat.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBuilds aRepeatStatementinstance using the values in this builder.Builds aRepeatStatementinstance using the values in this builder.protected intprotected booleanwithRepetitions(int repetitions) Specifies the number of times to run the test.withRunUntilFailure(boolean untilFailure) Specifies the number of times to run the test.
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
withRepetitions
Specifies the number of times to run the test.- Parameters:
repetitions- The number of times to run the test.- Returns:
thisfor method chaining.
-
withRunUntilFailure
Specifies the number of times to run the test.- Parameters:
untilFailure- true if the test should run until a failure occurs.- Returns:
thisfor method chaining.
-
getRepetitions
protected int getRepetitions() -
isUntilFailure
protected boolean isUntilFailure() -
build
Builds aRepeatStatementinstance using the values in this builder.- Parameters:
next- The statement instance to wrap with the newly create repeat statement.- Returns:
- a new
RepeatStatementthat wraps the givenStatement.
-
build
Builds aRepeatStatementinstance using the values in this builder.- Parameters:
annotation- TheRepeatannotation that triggered this statement being created.next- The statement instance to wrap with the newly create repeat statement.- Returns:
- a new
RepeatStatementthat wraps the givenStatement.
-