spek-junit-platform-engine
Module Contents
alltypes
Module Contents
class
FixturesAdapter
:
LifecycleListener
Module Contents
FixturesAdapter
(
)
fun
afterExecuteAction
(
action
:
ActionScope
)
:
Unit
fun
afterExecuteGroup
(
group
:
GroupScope
)
:
Unit
fun
afterExecuteTest
(
test
:
TestScope
)
:
Unit
fun
beforeExecuteAction
(
action
:
ActionScope
)
:
Unit
fun
beforeExecuteGroup
(
group
:
GroupScope
)
:
Unit
fun
beforeExecuteTest
(
test
:
TestScope
)
:
Unit
fun
registerAfterEachTest
(
group
:
GroupScope
,
callback
:
(
)
->
Unit
)
:
Unit
fun
registerAfterGroup
(
group
:
GroupScope
,
callback
:
(
)
->
Unit
)
:
Unit
fun
registerBeforeEachTest
(
group
:
GroupScope
,
callback
:
(
)
->
Unit
)
:
Unit
fun
registerBeforeGroup
(
group
:
GroupScope
,
callback
:
(
)
->
Unit
)
:
Unit
sealed
class
LifecycleAwareAdapter
<
T
>
:
LifecycleAware
<
T
>
,
LifecycleListener
Module Contents
class
GroupCachingModeAdapter
<
T
>
:
LifecycleAwareAdapter
<
T
>
Module Contents
GroupCachingModeAdapter
(
factory
:
(
)
->
T
)
fun
afterExecuteGroup
(
group
:
GroupScope
)
:
Unit
fun
beforeExecuteGroup
(
group
:
GroupScope
)
:
Unit
val
stack
:
MutableList
<
T
?
>
class
ScopeCachingModeAdapter
<
T
>
:
LifecycleAwareAdapter
<
T
>
Module Contents
ScopeCachingModeAdapter
(
group
:
GroupScope
,
factory
:
(
)
->
T
)
fun
afterExecuteGroup
(
group
:
GroupScope
)
:
Unit
val
group
:
GroupScope
class
TestCachingModeAdapter
<
T
>
:
LifecycleAwareAdapter
<
T
>
Module Contents
TestCachingModeAdapter
(
factory
:
(
)
->
T
)
fun
afterExecuteAction
(
action
:
ActionScope
)
:
Unit
fun
afterExecuteTest
(
test
:
TestScope
)
:
Unit
var
cached
:
T
?
val
factory
:
(
)
->
T
open
fun
getValue
(
thisRef
:
Any
?
,
property
:
KProperty
<
*
>
)
:
T
open
fun
invoke
(
)
:
T
class
LifecycleManager
Module Contents
LifecycleManager
(
)
fun
addListener
(
listener
:
LifecycleListener
)
:
Unit
fun
afterExecuteAction
(
action
:
ActionScope
)
:
Unit
fun
afterExecuteGroup
(
group
:
GroupScope
)
:
Unit
fun
afterExecuteTest
(
test
:
TestScope
)
:
Unit
fun
beforeExecuteAction
(
action
:
ActionScope
)
:
Unit
fun
beforeExecuteGroup
(
group
:
GroupScope
)
:
Unit
fun
beforeExecuteTest
(
test
:
TestScope
)
:
Unit
fun
removeListener
(
listener
:
LifecycleListener
)
:
Unit
sealed
class
Scope
:
Scope
Module Contents
class
Action
:
Scope
,
ActionScope
Module Contents
Action
(
uniqueId
:
<ERROR CLASS>
,
pending
:
Pending
,
source
:
<ERROR CLASS>
?
,
lifecycleManager
:
LifecycleManager
,
body
:
Action
.
(
SpekExecutionContext
)
->
Unit
)
fun
after
(
context
:
SpekExecutionContext
)
:
Unit
fun
before
(
context
:
SpekExecutionContext
)
:
SpekExecutionContext
fun
execute
(
context
:
SpekExecutionContext
,
dynamicTestExecutor
:
<ERROR CLASS>
?
)
:
SpekExecutionContext
fun
getType
(
)
:
<ERROR CLASS>
fun
mayRegisterTests
(
)
:
Boolean
open
class
Group
:
Scope
,
GroupScope
Module Contents
Group
(
uniqueId
:
<ERROR CLASS>
,
pending
:
Pending
,
source
:
<ERROR CLASS>
?
,
lifecycleManager
:
LifecycleManager
)
open
fun
after
(
context
:
SpekExecutionContext
)
:
Unit
open
fun
before
(
context
:
SpekExecutionContext
)
:
SpekExecutionContext
open
fun
getType
(
)
:
<ERROR CLASS>
class
Test
:
Scope
,
TestScope
Module Contents
Test
(
uniqueId
:
<ERROR CLASS>
,
pending
:
Pending
,
source
:
<ERROR CLASS>
?
,
lifecycleManager
:
LifecycleManager
,
body
:
TestBody
.
(
)
->
Unit
)
fun
after
(
context
:
SpekExecutionContext
)
:
Unit
fun
before
(
context
:
SpekExecutionContext
)
:
SpekExecutionContext
val
body
:
TestBody
.
(
)
->
Unit
fun
execute
(
context
:
SpekExecutionContext
,
dynamicTestExecutor
:
<ERROR CLASS>
?
)
:
SpekExecutionContext
fun
getType
(
)
:
<ERROR CLASS>
val
parent
:
GroupScope
val
lifecycleManager
:
LifecycleManager
open
val
parent
:
GroupScope
?
val
pending
:
Pending
open
fun
shouldBeSkipped
(
context
:
SpekExecutionContext
)
:
<ERROR CLASS>
val
source
:
<ERROR CLASS>
?
class
SpekEngineDescriptor
:
GroupScope
Module Contents
SpekEngineDescriptor
(
uniqueId
:
<ERROR CLASS>
)
val
parent
:
Nothing
?
class
SpekException
:
Throwable
Module Contents
SpekException
(
message
:
String
,
cause
:
Throwable
?
=
null
)
class
SpekExecutionContext
Module Contents
SpekExecutionContext
(
executionRequest
:
<ERROR CLASS>
)
val
engineExecutionListener
:
<ERROR CLASS>
val
executionRequest
:
<ERROR CLASS>
class
SpekTestEngine
Module Contents
SpekTestEngine
(
)
class
ActionCollector
:
ActionBody
Module Contents
ActionCollector
(
root
:
Action
,
lifecycleManager
:
LifecycleManager
,
context
:
SpekExecutionContext
)
val
context
:
SpekExecutionContext
val
lifecycleManager
:
LifecycleManager
val
root
:
Action
fun
test
(
description
:
String
,
pending
:
Pending
,
body
:
TestBody
.
(
)
->
Unit
)
:
Unit
class
Collector
:
Spec
Module Contents
Collector
(
root
:
Group
,
lifecycleManager
:
LifecycleManager
,
fixtures
:
FixturesAdapter
)
open
fun
action
(
description
:
String
,
pending
:
Pending
,
body
:
ActionBody
.
(
)
->
Unit
)
:
Unit
open
fun
afterEachTest
(
callback
:
(
)
->
Unit
)
:
Unit
open
fun
afterGroup
(
callback
:
(
)
->
Unit
)
:
Unit
open
fun
beforeEachTest
(
callback
:
(
)
->
Unit
)
:
Unit
open
fun
beforeGroup
(
callback
:
(
)
->
Unit
)
:
Unit
val
fixtures
:
FixturesAdapter
open
fun
group
(
description
:
String
,
pending
:
Pending
,
body
:
SpecBody
.
(
)
->
Unit
)
:
Unit
val
lifecycleManager
:
LifecycleManager
open
fun
<
T
>
memoized
(
mode
:
CachingMode
,
factory
:
(
)
->
T
)
:
LifecycleAware
<
T
>
open
fun
registerListener
(
listener
:
LifecycleListener
)
:
Unit
val
root
:
Group
open
fun
test
(
description
:
String
,
pending
:
Pending
,
body
:
TestBody
.
(
)
->
Unit
)
:
Unit
const
val
GROUP_SEGMENT_TYPE
:
String
const
val
SPEC_SEGMENT_TYPE
:
String
const
val
TEST_SEGMENT_TYPE
:
String
fun
createExecutionContext
(
request
:
<ERROR CLASS>
)
:
SpekExecutionContext
val
defaultInstanceFactory
:
InstanceFactory
fun
discover
(
discoveryRequest
:
<ERROR CLASS>
,
uniqueId
:
<ERROR CLASS>
)
:
<ERROR CLASS>
fun
getId
(
)
:
String
fun
getSource
(
)
:
<ERROR CLASS>
?
class
ThrowableCollector
Module Contents
ThrowableCollector
(
)
fun
add
(
throwable
:
Throwable
)
:
Unit
fun
assertEmpty
(
)
:
Unit
inline
fun
executeSafely
(
block
:
(
)
->
Unit
)
:
Unit
fun
isEmpty
(
)
:
Boolean
package
org.jetbrains.spek.engine
Module Contents
class
FixturesAdapter
:
LifecycleListener
Module Contents
FixturesAdapter
(
)
fun
afterExecuteAction
(
action
:
ActionScope
)
:
Unit
fun
afterExecuteGroup
(
group
:
GroupScope
)
:
Unit
fun
afterExecuteTest
(
test
:
TestScope
)
:
Unit
fun
beforeExecuteAction
(
action
:
ActionScope
)
:
Unit
fun
beforeExecuteGroup
(
group
:
GroupScope
)
:
Unit
fun
beforeExecuteTest
(
test
:
TestScope
)
:
Unit
fun
registerAfterEachTest
(
group
:
GroupScope
,
callback
:
(
)
->
Unit
)
:
Unit
fun
registerAfterGroup
(
group
:
GroupScope
,
callback
:
(
)
->
Unit
)
:
Unit
fun
registerBeforeEachTest
(
group
:
GroupScope
,
callback
:
(
)
->
Unit
)
:
Unit
fun
registerBeforeGroup
(
group
:
GroupScope
,
callback
:
(
)
->
Unit
)
:
Unit
sealed
class
Scope
:
Scope
Module Contents
class
Action
:
Scope
,
ActionScope
Module Contents
Action
(
uniqueId
:
<ERROR CLASS>
,
pending
:
Pending
,
source
:
<ERROR CLASS>
?
,
lifecycleManager
:
LifecycleManager
,
body
:
Action
.
(
SpekExecutionContext
)
->
Unit
)
fun
after
(
context
:
SpekExecutionContext
)
:
Unit
fun
before
(
context
:
SpekExecutionContext
)
:
SpekExecutionContext
fun
execute
(
context
:
SpekExecutionContext
,
dynamicTestExecutor
:
<ERROR CLASS>
?
)
:
SpekExecutionContext
fun
getType
(
)
:
<ERROR CLASS>
fun
mayRegisterTests
(
)
:
Boolean
open
class
Group
:
Scope
,
GroupScope
Module Contents
Group
(
uniqueId
:
<ERROR CLASS>
,
pending
:
Pending
,
source
:
<ERROR CLASS>
?
,
lifecycleManager
:
LifecycleManager
)
open
fun
after
(
context
:
SpekExecutionContext
)
:
Unit
open
fun
before
(
context
:
SpekExecutionContext
)
:
SpekExecutionContext
open
fun
getType
(
)
:
<ERROR CLASS>
class
Test
:
Scope
,
TestScope
Module Contents
Test
(
uniqueId
:
<ERROR CLASS>
,
pending
:
Pending
,
source
:
<ERROR CLASS>
?
,
lifecycleManager
:
LifecycleManager
,
body
:
TestBody
.
(
)
->
Unit
)
fun
after
(
context
:
SpekExecutionContext
)
:
Unit
fun
before
(
context
:
SpekExecutionContext
)
:
SpekExecutionContext
val
body
:
TestBody
.
(
)
->
Unit
fun
execute
(
context
:
SpekExecutionContext
,
dynamicTestExecutor
:
<ERROR CLASS>
?
)
:
SpekExecutionContext
fun
getType
(
)
:
<ERROR CLASS>
val
parent
:
GroupScope
val
lifecycleManager
:
LifecycleManager
open
val
parent
:
GroupScope
?
val
pending
:
Pending
open
fun
shouldBeSkipped
(
context
:
SpekExecutionContext
)
:
<ERROR CLASS>
val
source
:
<ERROR CLASS>
?
class
SpekEngineDescriptor
:
GroupScope
Module Contents
SpekEngineDescriptor
(
uniqueId
:
<ERROR CLASS>
)
val
parent
:
Nothing
?
class
SpekException
:
Throwable
Module Contents
SpekException
(
message
:
String
,
cause
:
Throwable
?
=
null
)
class
SpekExecutionContext
Module Contents
SpekExecutionContext
(
executionRequest
:
<ERROR CLASS>
)
val
engineExecutionListener
:
<ERROR CLASS>
val
executionRequest
:
<ERROR CLASS>
class
SpekTestEngine
Module Contents
SpekTestEngine
(
)
class
ActionCollector
:
ActionBody
Module Contents
ActionCollector
(
root
:
Action
,
lifecycleManager
:
LifecycleManager
,
context
:
SpekExecutionContext
)
val
context
:
SpekExecutionContext
val
lifecycleManager
:
LifecycleManager
val
root
:
Action
fun
test
(
description
:
String
,
pending
:
Pending
,
body
:
TestBody
.
(
)
->
Unit
)
:
Unit
class
Collector
:
Spec
Module Contents
Collector
(
root
:
Group
,
lifecycleManager
:
LifecycleManager
,
fixtures
:
FixturesAdapter
)
open
fun
action
(
description
:
String
,
pending
:
Pending
,
body
:
ActionBody
.
(
)
->
Unit
)
:
Unit
open
fun
afterEachTest
(
callback
:
(
)
->
Unit
)
:
Unit
open
fun
afterGroup
(
callback
:
(
)
->
Unit
)
:
Unit
open
fun
beforeEachTest
(
callback
:
(
)
->
Unit
)
:
Unit
open
fun
beforeGroup
(
callback
:
(
)
->
Unit
)
:
Unit
val
fixtures
:
FixturesAdapter
open
fun
group
(
description
:
String
,
pending
:
Pending
,
body
:
SpecBody
.
(
)
->
Unit
)
:
Unit
val
lifecycleManager
:
LifecycleManager
open
fun
<
T
>
memoized
(
mode
:
CachingMode
,
factory
:
(
)
->
T
)
:
LifecycleAware
<
T
>
open
fun
registerListener
(
listener
:
LifecycleListener
)
:
Unit
val
root
:
Group
open
fun
test
(
description
:
String
,
pending
:
Pending
,
body
:
TestBody
.
(
)
->
Unit
)
:
Unit
const
val
GROUP_SEGMENT_TYPE
:
String
const
val
SPEC_SEGMENT_TYPE
:
String
const
val
TEST_SEGMENT_TYPE
:
String
fun
createExecutionContext
(
request
:
<ERROR CLASS>
)
:
SpekExecutionContext
val
defaultInstanceFactory
:
InstanceFactory
fun
discover
(
discoveryRequest
:
<ERROR CLASS>
,
uniqueId
:
<ERROR CLASS>
)
:
<ERROR CLASS>
fun
getId
(
)
:
String
fun
getSource
(
)
:
<ERROR CLASS>
?
class
ThrowableCollector
Module Contents
ThrowableCollector
(
)
fun
add
(
throwable
:
Throwable
)
:
Unit
fun
assertEmpty
(
)
:
Unit
inline
fun
executeSafely
(
block
:
(
)
->
Unit
)
:
Unit
fun
isEmpty
(
)
:
Boolean
package
org.jetbrains.spek.engine.lifecycle
Module Contents
sealed
class
LifecycleAwareAdapter
<
T
>
:
LifecycleAware
<
T
>
,
LifecycleListener
Module Contents
class
GroupCachingModeAdapter
<
T
>
:
LifecycleAwareAdapter
<
T
>
Module Contents
GroupCachingModeAdapter
(
factory
:
(
)
->
T
)
fun
afterExecuteGroup
(
group
:
GroupScope
)
:
Unit
fun
beforeExecuteGroup
(
group
:
GroupScope
)
:
Unit
val
stack
:
MutableList
<
T
?
>
class
ScopeCachingModeAdapter
<
T
>
:
LifecycleAwareAdapter
<
T
>
Module Contents
ScopeCachingModeAdapter
(
group
:
GroupScope
,
factory
:
(
)
->
T
)
fun
afterExecuteGroup
(
group
:
GroupScope
)
:
Unit
val
group
:
GroupScope
class
TestCachingModeAdapter
<
T
>
:
LifecycleAwareAdapter
<
T
>
Module Contents
TestCachingModeAdapter
(
factory
:
(
)
->
T
)
fun
afterExecuteAction
(
action
:
ActionScope
)
:
Unit
fun
afterExecuteTest
(
test
:
TestScope
)
:
Unit
var
cached
:
T
?
val
factory
:
(
)
->
T
open
fun
getValue
(
thisRef
:
Any
?
,
property
:
KProperty
<
*
>
)
:
T
open
fun
invoke
(
)
:
T
class
LifecycleManager
Module Contents
LifecycleManager
(
)
fun
addListener
(
listener
:
LifecycleListener
)
:
Unit
fun
afterExecuteAction
(
action
:
ActionScope
)
:
Unit
fun
afterExecuteGroup
(
group
:
GroupScope
)
:
Unit
fun
afterExecuteTest
(
test
:
TestScope
)
:
Unit
fun
beforeExecuteAction
(
action
:
ActionScope
)
:
Unit
fun
beforeExecuteGroup
(
group
:
GroupScope
)
:
Unit
fun
beforeExecuteTest
(
test
:
TestScope
)
:
Unit
fun
removeListener
(
listener
:
LifecycleListener
)
:
Unit