summaryrefslogtreecommitdiff
path: root/odcsim-testkit/src/main
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2019-05-06 15:44:56 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2019-05-14 12:55:56 +0200
commit5b48cdbad2493c7af9e79bb9996f195ace3123e5 (patch)
treee7b254a5e5eb6226017e2a6c607729b8cf3cd82d /odcsim-testkit/src/main
parent9ebe07bdbcdd7ca8f8b3c1f76a7f26b560cf2625 (diff)
style: Format code according to Ktlint style guide
This change formats the code according to the style guide of Ktlint.
Diffstat (limited to 'odcsim-testkit/src/main')
-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
}
}
-
}