summaryrefslogtreecommitdiff
path: root/odcsim-testkit/src
diff options
context:
space:
mode:
Diffstat (limited to 'odcsim-testkit/src')
-rw-r--r--odcsim-testkit/src/main/kotlin/com/atlarge/odcsim/testkit/internal/BehaviorTestKitImpl.kt6
-rw-r--r--odcsim-testkit/src/main/kotlin/com/atlarge/odcsim/testkit/internal/TestInboxImpl.kt9
2 files changed, 9 insertions, 6 deletions
diff --git a/odcsim-testkit/src/main/kotlin/com/atlarge/odcsim/testkit/internal/BehaviorTestKitImpl.kt b/odcsim-testkit/src/main/kotlin/com/atlarge/odcsim/testkit/internal/BehaviorTestKitImpl.kt
index 5b6669bb..cb216614 100644
--- a/odcsim-testkit/src/main/kotlin/com/atlarge/odcsim/testkit/internal/BehaviorTestKitImpl.kt
+++ b/odcsim-testkit/src/main/kotlin/com/atlarge/odcsim/testkit/internal/BehaviorTestKitImpl.kt
@@ -40,8 +40,10 @@ import kotlin.math.max
* @param initialBehavior The initial behavior to initialize the actor of the test kit with.
* @param path The path to the actor.
*/
-internal class BehaviorTestKitImpl<T : Any>(initialBehavior: Behavior<T>,
- path: ActorPath) : BehaviorTestKit<T> {
+internal class BehaviorTestKitImpl<T : Any>(
+ initialBehavior: Behavior<T>,
+ path: ActorPath
+) : BehaviorTestKit<T> {
/**
* The [BehaviorInterpreter] used to interpret incoming messages.
*/
diff --git a/odcsim-testkit/src/main/kotlin/com/atlarge/odcsim/testkit/internal/TestInboxImpl.kt b/odcsim-testkit/src/main/kotlin/com/atlarge/odcsim/testkit/internal/TestInboxImpl.kt
index 2f939eaa..35abd758 100644
--- a/odcsim-testkit/src/main/kotlin/com/atlarge/odcsim/testkit/internal/TestInboxImpl.kt
+++ b/odcsim-testkit/src/main/kotlin/com/atlarge/odcsim/testkit/internal/TestInboxImpl.kt
@@ -84,9 +84,11 @@ internal class TestInboxImpl<T : Any>(private val owner: BehaviorTestKitImpl<*>,
* @property time The point in time to deliver the message.
* @property message The message to wrap.
*/
- private inner class EnvelopeImpl(val id: Long,
- override val time: Instant,
- override val message: T) : Envelope<T> {
+ private inner class EnvelopeImpl(
+ val id: Long,
+ override val time: Instant,
+ override val message: T
+ ) : Envelope<T> {
override fun compareTo(other: Envelope<*>): Int {
val cmp = super.compareTo(other)
return if (cmp == 0 && other is EnvelopeImpl)
@@ -95,5 +97,4 @@ internal class TestInboxImpl<T : Any>(private val owner: BehaviorTestKitImpl<*>,
cmp
}
}
-
}