-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename NotatDto til VedtakNotatDto (#206)
- Loading branch information
Showing
3 changed files
with
70 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
bidrag-transport/src/test/kotlin/no/nav/bidrag/transport/dokument/JournalpostHendelseTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package no.nav.bidrag.transport.dokument | ||
|
||
import io.kotest.matchers.shouldBe | ||
import org.junit.jupiter.api.Test | ||
|
||
class JournalpostHendelseTest { | ||
@Test | ||
fun `skal lage saksbehandlerInfo`() { | ||
val sporingsdata = Sporingsdata("correlationId", "Z99999", "Etternavn, Fornavn", "4888") | ||
sporingsdata.lagSaksbehandlerInfo() shouldBe "Etternavn, Fornavn (Z99999, 4888)" | ||
} | ||
|
||
@Test | ||
fun `skal lage saksbehandlerInfo uten ident`() { | ||
val sporingsdata = Sporingsdata("correlationId", null, "Etternavn, Fornavn", "4888") | ||
sporingsdata.lagSaksbehandlerInfo() shouldBe "Etternavn, Fornavn (4888)" | ||
} | ||
|
||
@Test | ||
fun `skal lage saksbehandlerInfo uten enhet og ident`() { | ||
val sporingsdata = Sporingsdata("correlationId", null, "Etternavn, Fornavn", null) | ||
sporingsdata.lagSaksbehandlerInfo() shouldBe "Etternavn, Fornavn (ukjent enhet)" | ||
} | ||
|
||
@Test | ||
fun `skal lage saksbehandlerInfo uten enhet`() { | ||
val sporingsdata = Sporingsdata("correlationId", "Z99999", "Etternavn, Fornavn", null) | ||
sporingsdata.lagSaksbehandlerInfo() shouldBe "Etternavn, Fornavn (Z99999, ukjent enhet)" | ||
} | ||
} |