Interface Performable

All Superinterfaces:
SkipNested
All Known Subinterfaces:
Action, Interaction, Task
All Known Implementing Classes:
AnonymousBackendTask, AnonymousInteraction, AnonymousPerformable, AnonymousPerformableFunction, AnonymousPerformableRunnable, AnonymousTask, CompositePerformable, ConditionalPerformable, ConditionalPerformableOnBoolean, ConditionalPerformableOnQuestion, Forget, RememberThat, RememberThat.WithQuestion, RememberThat.WithValue, SilentInteraction, SilentPerformable, SilentPerformableFunction, Wait
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public interface Performable
extends SkipNested
A task or action that can be performed by an actor. It is common to use builder methods to create instances of the Performable class, in order to make the tests read more fluently. For example: [source,java] -- purchase().anApple().thatCosts(0).dollars() --
  • Method Summary

    Modifier and Type Method Description
    <T extends Actor>
    void
    performAs​(T actor)  
    default Performable then​(Performable nextPerformable)  
  • Method Details