summaryrefslogtreecommitdiff
path: root/odcsim-testkit/src/main/kotlin/com/atlarge/odcsim/testkit/internal/TestInboxImpl.kt
diff options
context:
space:
mode:
Diffstat (limited to 'odcsim-testkit/src/main/kotlin/com/atlarge/odcsim/testkit/internal/TestInboxImpl.kt')
-rw-r--r--odcsim-testkit/src/main/kotlin/com/atlarge/odcsim/testkit/internal/TestInboxImpl.kt9
1 files changed, 5 insertions, 4 deletions
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
}
}
-
}