Skip to content

Commit 607ec6a

Browse files
committed
spotless
1 parent 87d9a55 commit 607ec6a

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

src/main/kotlin/no/nav/hjelpemidler/oebs/listener/Context.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import org.apache.kafka.clients.producer.Producer
66
import org.apache.kafka.clients.producer.ProducerRecord
77
import java.io.Closeable
88

9-
class Context(private val producer: Producer<String, String>) : Closeable by producer {
9+
class Context(
10+
private val producer: Producer<String, String>,
11+
) : Closeable by producer {
1012
private val topic = "teamdigihot.hm-soknadsbehandling-v1"
1113

1214
suspend fun <T> publish(

src/test/kotlin/no/nav/hjelpemidler/oebs/listener/model/OrdrelinjeOebsTest.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ class OrdrelinjeOebsTest {
7373
result.antall shouldBe 2.99
7474
}
7575

76-
private fun lagOrdrelinje(block: OrdrelinjeOebsJsonBuilder.() -> Unit = {}): OrdrelinjeOebs {
77-
return jsonToValue<OrdrelinjeOebs>(Fixtures.lagOrdrelinjeOebsJson(block))
78-
}
76+
private fun lagOrdrelinje(
77+
block: OrdrelinjeOebsJsonBuilder.() -> Unit = {
78+
},
79+
): OrdrelinjeOebs = jsonToValue<OrdrelinjeOebs>(Fixtures.lagOrdrelinjeOebsJson(block))
7980
}

src/test/kotlin/no/nav/hjelpemidler/oebs/listener/test/TestApplication.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ fun runTest(test: suspend TestContext.() -> Unit) =
2121
context.test()
2222
}
2323

24-
class TestContext(val client: HttpClient, val producer: MockProducer<String, String>) {
24+
class TestContext(
25+
val client: HttpClient,
26+
val producer: MockProducer<String, String>,
27+
) {
2528
val kafkaHistory: List<ProducerRecord<String, String>> get() = producer.history()
2629
}
2730

0 commit comments

Comments
 (0)