Package org.shakespeareframework
Class Actor
java.lang.Object
org.shakespeareframework.Actor
An
Actor is the central class of the Shakespeare Framework. It is basically used for any
interaction with the system under test.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<A> A<A> Achecks(RetryableQuestion<A> question) does(RetryableTask task) booleangetName()inthashCode()<F extends Fact>
FtoString()<A extends Ability>
A
-
Constructor Details
-
Actor
- Parameters:
name- a name used for logging and reporting
-
Actor
public Actor()Picks a name fromNAMES.
-
-
Method Details
-
does
-
does
- Parameters:
task- theRetryableTaskto be performed by thisActor- Returns:
- this
Actor - Throws:
TimeoutException- if no acceptable answer is given when the question's timeout is reached
-
checks
-
checks
- Type Parameters:
A- theClassof the answer- Parameters:
question- theRetryableQuestionto be answered by thisActor- Returns:
- the answer to the given Question
- Throws:
TimeoutException- if no acceptable answer is given when the question's timeout is reached
-
can
- Parameters:
abilities-Abilitys theActormayuses(java.lang.Class<A>)- Returns:
- this
Actor
-
uses
-
learns
- Parameters:
facts-Facts theActorremembers(java.lang.Class<F>)s- Returns:
- this
Actor
-
remembers
-
informs
-
getName
- Returns:
name
-
toString
-
equals
-
hashCode
public int hashCode()
-