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 ActoractorNamed(java.lang.String actorName, Ability... abilities)protected voidassignGeneralAbilitiesTo(Actor newActor)voiddismissAll()java.util.List<Actor>getActors()static CastofStandardActors()static CastwhereEveryoneCan(java.util.function.Consumer<Actor>... abilities)Create a Cast object where each actor is configured using the provided function.static CastwhereEveryoneCan(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
-