Class Cast
java.lang.Object
net.serenitybdd.screenplay.actors.Cast
public class Cast
extends java.lang.Object
Provide simple support for managing Screenplay actors in Cucumber-JVM or JBehave
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Actor
actorNamed(java.lang.String actorName, Ability... abilities)
protected void
assignGeneralAbilitiesTo(Actor newActor)
void
dismissAll()
java.util.List<Actor>
getActors()
static Cast
ofStandardActors()
static Cast
whereEveryoneCan(java.util.function.Consumer<Actor>... abilities)
Create a Cast object where each actor is configured using the provided function.static Cast
whereEveryoneCan(Ability... abilities)
Create a Cast object with a list of predefined abilitiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Cast
-
Cast
-
-
Method Details
-
ofStandardActors
-
whereEveryoneCan
Create a Cast object with a list of predefined abilities -
whereEveryoneCan
Create a Cast object where each actor is configured using the provided function. E.g. Cast globeTheatreCast = Cast.whereEveryoneCan(actor -> actor.whoCan(Fetch.some("Coffee"))); -
actorNamed
-
getActors
-
dismissAll
public void dismissAll() -
assignGeneralAbilitiesTo
-