pl
.
newicom
.
dddd
.
test
.
support
GivenWhenThenTestFixture
Related Doc:
package support
abstract
class
GivenWhenThenTestFixture
extends
TestKit
with
ImplicitSender
Linear Supertypes
ImplicitSender
,
TestKit
,
TestKitBase
,
AnyRef
,
Any
Known Subclasses
OfficeSpec
Ordering
Alphabetic
By Inheritance
Inherited
GivenWhenThenTestFixture
ImplicitSender
TestKit
TestKitBase
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
new
GivenWhenThenTestFixture
(
_system:
ActorSystem
)
Type Members
case class
Given
(
givenFun: () ⇒
PastEvents
)
extends
Product
with
Serializable
case class
PastEvents
(
list:
List
[
Processed
] =
List.empty
)
extends
Product
with
Serializable
case class
When
[
C <:
Command
]
(
wc:
WhenContext
[
C
]
,
whenFun: () ⇒
Unit
)
extends
Product
with
Serializable
case class
WhenContext
[
C <:
Command
]
(
commands:
Seq
[
C
]
,
pastEvents:
PastEvents
=
PastEvents()
,
params:
Seq
[
Any
] =
Seq.empty
)
extends
Product
with
Serializable
Abstract Value Members
abstract
def
ensureOfficeTerminated
()
:
Unit
abstract
def
officeUnderTest
:
Office
Concrete Value Members
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
implicit
def
acksToPastEvents
(
acks:
Seq
[
Processed
]
)
:
PastEvents
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
awaitAssert
(
a: ⇒
Any
,
max:
Duration
,
interval:
Duration
)
:
Unit
Definition Classes
TestKitBase
def
awaitCond
(
p: ⇒
Boolean
,
max:
Duration
,
interval:
Duration
,
message:
String
)
:
Unit
Definition Classes
TestKitBase
def
childActorOf
(
props:
Props
)
:
ActorRef
Definition Classes
TestKitBase
def
childActorOf
(
props:
Props
,
name:
String
)
:
ActorRef
Definition Classes
TestKitBase
def
childActorOf
(
props:
Props
,
supervisorStrategy:
SupervisorStrategy
)
:
ActorRef
Definition Classes
TestKitBase
def
childActorOf
(
props:
Props
,
name:
String
,
supervisorStrategy:
SupervisorStrategy
)
:
ActorRef
Definition Classes
TestKitBase
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
implicit final
def
commandGenToWhenContext
[
C <:
Command
]
(
cGen:
Gen
[
C
]
)
:
WhenContext
[
C
]
Annotations
@tailrec
()
implicit
def
commandGenWithParamToWhenContext
[
C <:
Command
]
(
cGen:
Gen
[(
C
,
Any
)]
)
:
WhenContext
[
C
]
def
commandMetaDataProvider
(
c:
Command
)
:
Option
[
MetaData
]
implicit
def
commandToWhenContext
[
C <:
Command
]
(
c:
C
)
:
WhenContext
[
C
]
implicit
def
commandsToWhenContext
[
C <:
Command
]
(
cs:
Seq
[
C
]
)
:
WhenContext
[
C
]
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
expectMsg
[
T
]
(
max:
FiniteDuration
,
hint:
String
,
obj:
T
)
:
T
Definition Classes
TestKitBase
def
expectMsg
[
T
]
(
max:
FiniteDuration
,
obj:
T
)
:
T
Definition Classes
TestKitBase
def
expectMsg
[
T
]
(
obj:
T
)
:
T
Definition Classes
TestKitBase
def
expectMsgAllClassOf
[
T
]
(
max:
FiniteDuration
,
obj:
Class
[_ <:
T
]*
)
:
Seq
[
T
]
Definition Classes
TestKitBase
def
expectMsgAllClassOf
[
T
]
(
obj:
Class
[_ <:
T
]*
)
:
Seq
[
T
]
Definition Classes
TestKitBase
def
expectMsgAllConformingOf
[
T
]
(
max:
FiniteDuration
,
obj:
Class
[_ <:
T
]*
)
:
Seq
[
T
]
Definition Classes
TestKitBase
def
expectMsgAllConformingOf
[
T
]
(
obj:
Class
[_ <:
T
]*
)
:
Seq
[
T
]
Definition Classes
TestKitBase
def
expectMsgAllOf
[
T
]
(
max:
FiniteDuration
,
obj:
T
*
)
:
Seq
[
T
]
Definition Classes
TestKitBase
def
expectMsgAllOf
[
T
]
(
obj:
T
*
)
:
Seq
[
T
]
Definition Classes
TestKitBase
def
expectMsgAnyClassOf
[
C
]
(
max:
FiniteDuration
,
obj:
Class
[_ <:
C
]*
)
:
C
Definition Classes
TestKitBase
def
expectMsgAnyClassOf
[
C
]
(
obj:
Class
[_ <:
C
]*
)
:
C
Definition Classes
TestKitBase
def
expectMsgAnyOf
[
T
]
(
max:
FiniteDuration
,
obj:
T
*
)
:
T
Definition Classes
TestKitBase
def
expectMsgAnyOf
[
T
]
(
obj:
T
*
)
:
T
Definition Classes
TestKitBase
def
expectMsgClass
[
C
]
(
max:
FiniteDuration
,
c:
Class
[
C
]
)
:
C
Definition Classes
TestKitBase
def
expectMsgClass
[
C
]
(
c:
Class
[
C
]
)
:
C
Definition Classes
TestKitBase
def
expectMsgPF
[
T
]
(
max:
Duration
,
hint:
String
)
(
f:
PartialFunction
[
Any
,
T
]
)
:
T
Definition Classes
TestKitBase
def
expectMsgType
[
T
]
(
max:
FiniteDuration
)
(
implicit
t:
ClassTag
[
T
]
)
:
T
Definition Classes
TestKitBase
def
expectMsgType
[
T
]
(
implicit
t:
ClassTag
[
T
]
)
:
T
Definition Classes
TestKitBase
def
expectNoMsg
(
max:
FiniteDuration
)
:
Unit
Definition Classes
TestKitBase
def
expectNoMsg
()
:
Unit
Definition Classes
TestKitBase
def
expectTerminated
(
target:
ActorRef
,
max:
Duration
)
:
Terminated
Definition Classes
TestKitBase
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
def
first
[
E
]
(
implicit
wc:
WhenContext
[_]
,
ct:
ClassTag
[
E
]
)
:
E
def
fishForMessage
(
max:
Duration
,
hint:
String
)
(
f:
PartialFunction
[
Any
,
Boolean
]
)
:
Any
Definition Classes
TestKitBase
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
given
(
cs:
Command
*
)
:
Given
def
given
(
cs:
List
[
Command
]
)
:
Given
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
def
ignoreMsg
(
f:
PartialFunction
[
Any
,
Boolean
]
)
:
Unit
Definition Classes
TestKitBase
def
ignoreNoMsg
()
:
Unit
Definition Classes
TestKitBase
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
lastSender
:
ActorRef
Definition Classes
TestKitBase
def
msgAvailable
:
Boolean
Definition Classes
TestKitBase
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
def
now
:
FiniteDuration
Definition Classes
TestKitBase
def
past
[
E
]
(
implicit
wc:
WhenContext
[_]
,
ct:
ClassTag
[
E
]
)
:
E
def
receiveN
(
n:
Int
,
max:
FiniteDuration
)
:
Seq
[
AnyRef
]
Definition Classes
TestKitBase
def
receiveN
(
n:
Int
)
:
Seq
[
AnyRef
]
Definition Classes
TestKitBase
def
receiveOne
(
max:
Duration
)
:
AnyRef
Definition Classes
TestKitBase
def
receiveWhile
[
T
]
(
max:
Duration
,
idle:
Duration
,
messages:
Int
)
(
f:
PartialFunction
[
AnyRef
,
T
]
)
:
Seq
[
T
]
Definition Classes
TestKitBase
def
remaining
:
FiniteDuration
Definition Classes
TestKitBase
def
remainingOr
(
duration:
FiniteDuration
)
:
FiniteDuration
Definition Classes
TestKitBase
def
remainingOrDefault
:
FiniteDuration
Definition Classes
TestKitBase
implicit
def
self
:
ActorRef
Definition Classes
ImplicitSender
def
setAutoPilot
(
pilot:
AutoPilot
)
:
Unit
Definition Classes
TestKitBase
def
shutdown
(
actorSystem:
ActorSystem
,
duration:
Duration
,
verifySystemShutdown:
Boolean
)
:
Unit
Definition Classes
TestKitBase
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
implicit
val
system
:
ActorSystem
Definition Classes
TestKit → TestKitBase
val
testActor
:
ActorRef
Definition Classes
TestKitBase
def
testActorName
:
String
Attributes
protected
Definition Classes
TestKitBase
val
testKitSettings
:
TestKitSettings
Definition Classes
TestKitBase
val
timeoutGiven
:
Timeout
val
timeoutThen
:
Timeout
def
toString
()
:
String
Definition Classes
AnyRef → Any
def
unwatch
(
ref:
ActorRef
)
:
ActorRef
Definition Classes
TestKitBase
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
watch
(
ref:
ActorRef
)
:
ActorRef
Definition Classes
TestKitBase
def
when
[
C <:
Command
]
(
wc:
WhenContext
[
C
]
)
:
When
[
C
]
implicit
def
whenContextToCommand
[
C <:
Command
]
(
wc:
WhenContext
[
C
]
)
:
C
implicit
def
whenContextToPastEvents
[
C <:
Command
]
(
wc:
WhenContext
[
C
]
)
:
PastEvents
def
whenF
(
whenFun: ⇒
Unit
)
:
When
[
Command
]
def
within
[
T
]
(
max:
FiniteDuration
)
(
f: ⇒
T
)
:
T
Definition Classes
TestKitBase
def
within
[
T
]
(
min:
FiniteDuration
,
max:
FiniteDuration
)
(
f: ⇒
T
)
:
T
Definition Classes
TestKitBase
Inherited from
ImplicitSender
Inherited from
TestKit
Inherited from
TestKitBase
Inherited from
AnyRef
Inherited from
Any
Ungrouped