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
-
Method Summary
Modifier and TypeMethodDescription<A> A
<A> A
checks
(RetryableQuestion<A> question) does
(RetryableTask task) boolean
getName()
int
hashCode()
<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
- theRetryableTask
to 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
- theClass
of the answer- Parameters:
question
- theRetryableQuestion
to 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
-Ability
s theActor
mayuses(java.lang.Class<A>)
- Returns:
- this
Actor
-
uses
-
learns
- Parameters:
facts
-Fact
s theActor
remembers(java.lang.Class<F>)
s- Returns:
- this
Actor
-
remembers
-
informs
-
getName
- Returns:
name
-
toString
-
equals
-
hashCode
public int hashCode()
-