Skip to content

Commit

Permalink
tester at initialisering av pakken øker summary-teller
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Bergh committed Jan 3, 2020
1 parent 8ccf606 commit 4bf9376
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/test/kotlin/no/nav/dagpenger/events/PacketTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package no.nav.dagpenger.events
import com.squareup.moshi.JsonEncodingException
import io.kotlintest.shouldBe
import org.json.JSONObject

import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertFalse
import org.junit.jupiter.api.Test
Expand Down Expand Up @@ -391,6 +390,13 @@ class PacketTest {
Packet(packet.toJson()!!).getCorrelationId() shouldBe packet.getCorrelationId()
}

@Test
fun `Initialization of Packet should increment summary count`() {
packetPayloadByteSize.clear()
val packet = Packet()
packetPayloadByteSize.get().count shouldBe 1.0
}

data class ClassA(
val id: String,
val list: List<ClassB>
Expand Down

0 comments on commit 4bf9376

Please sign in to comment.