Interface ValueEntityResult<R>
-
- Type Parameters:
R- The type of reply that is expected from invoking command handler
public interface ValueEntityResult<R>Represents the result of an ValueEntity handling a command when run in through the testkit.Not for user extension, returned by the generated testkit.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetError()The error description.ServiceCallDetails<R>getForward()An object with details about the forward.RgetReply()The reply object from the handler if there was one.java.lang.ObjectgetUpdatedState()booleanisError()booleanisForward()booleanisNoReply()booleanisReply()booleanstateWasDeleted()booleanstateWasUpdated()
-
-
-
Method Detail
-
isReply
boolean isReply()
- Returns:
- true if the call had an effect with a reply, false if not
-
getReply
R getReply()
The reply object from the handler if there was one. If the call had an effect without any reply an exception is thrown
-
isForward
boolean isForward()
- Returns:
- true if the call was forwarded, false if not
-
getForward
ServiceCallDetails<R> getForward()
An object with details about the forward. If the result was not a forward an exception is thrown
-
isError
boolean isError()
- Returns:
- true if the call was an error, false if not
-
getError
java.lang.String getError()
The error description. If the result was not an error an exception is thrown
-
isNoReply
boolean isNoReply()
- Returns:
- true if the call had a noReply effect, false if not
-
stateWasUpdated
boolean stateWasUpdated()
- Returns:
- true if the call updated the entity state
-
getUpdatedState
java.lang.Object getUpdatedState()
- Returns:
- The updated state. If the state was not updated an exeption is thrown
-
stateWasDeleted
boolean stateWasDeleted()
- Returns:
- true if the call deleted the entity
-
-