public abstract class Action<T extends Action> extends ObjectWithJsonToString
Modifier and Type | Class and Description |
---|---|
static class |
Action.Direction |
static class |
Action.Type |
Constructor and Description |
---|
Action() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Delay |
getDelay() |
String |
getExpectationId() |
abstract Action.Type |
getType() |
int |
hashCode() |
Action |
setExpectationId(String expectationId) |
T |
withDelay(Delay delay)
The delay before responding with this request as a Delay object, for example new Delay(TimeUnit.SECONDS, 3)
|
T |
withDelay(TimeUnit timeUnit,
long value)
The delay before responding with this request as a Delay object, for example new Delay(TimeUnit.SECONDS, 3)
|
toString
fieldsExcludedFromEqualsAndHashCode
public T withDelay(Delay delay)
delay
- a Delay object, for example new Delay(TimeUnit.SECONDS, 3)public T withDelay(TimeUnit timeUnit, long value)
timeUnit
- the time unit, for example TimeUnit.SECONDSvalue
- the number of time units to delay the responsepublic Delay getDelay()
public String getExpectationId()
public abstract Action.Type getType()
public boolean equals(Object o)
equals
in class ObjectWithReflectiveEqualsHashCodeToString
public int hashCode()
hashCode
in class ObjectWithReflectiveEqualsHashCodeToString
Copyright © 2022. All rights reserved.