public static class RepeatStatement.Builder extends Object
Repeat.| Modifier | Constructor and Description |
|---|---|
protected |
Builder() |
| Modifier and Type | Method and Description |
|---|---|
RepeatStatement |
build(Repeat annotation,
org.junit.runners.model.Statement next)
Builds a
RepeatStatement instance using the values in this builder. |
RepeatStatement |
build(org.junit.runners.model.Statement next)
Builds a
RepeatStatement instance using the values in this builder. |
protected int |
getRepetitions() |
protected boolean |
isUntilFailure() |
RepeatStatement.Builder |
withRepetitions(int repetitions)
Specifies the number of times to run the test.
|
RepeatStatement.Builder |
withRunUntilFailure(boolean untilFailure)
Specifies the number of times to run the test.
|
protected Builder()
public RepeatStatement.Builder withRepetitions(int repetitions)
repetitions - The number of times to run the test.this for method chaining.public RepeatStatement.Builder withRunUntilFailure(boolean untilFailure)
untilFailure - true if the test should run until a failure occurs.this for method chaining.protected int getRepetitions()
protected boolean isUntilFailure()
public RepeatStatement build(org.junit.runners.model.Statement next)
RepeatStatement instance using the values in this builder.next - The statement instance to wrap with the newly create repeat statement.RepeatStatement that wraps the given Statement.public RepeatStatement build(Repeat annotation, org.junit.runners.model.Statement next)
RepeatStatement instance using the values in this builder.annotation - The Repeat annotation that triggered this statement being created.next - The statement instance to wrap with the newly create repeat statement.RepeatStatement that wraps the given Statement.Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.