File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
main/kotlin/no/nav/hjelpemidler/model
test/kotlin/no/nav/hjelpemidler Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import com.fasterxml.jackson.annotation.JsonFormat
4
4
import com.fasterxml.jackson.annotation.JsonProperty
5
5
import java.time.LocalDate
6
6
7
- data class Statusinfo (
7
+ data class Statusinfo (
8
8
@JsonProperty(" System" )
9
9
val mottakendeSystem : String ,
10
10
@@ -62,5 +62,5 @@ data class Statusinfo(
62
62
63
63
@JsonFormat(shape = JsonFormat .Shape .STRING , pattern = " yyyy-MM-dd" )
64
64
@JsonProperty(" LastUpdateDate" )
65
- val sistOppdatert : LocalDate ,
65
+ val sistOppdatert : LocalDate
66
66
)
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package no.nav.hjelpemidler
2
2
3
3
import com.fasterxml.jackson.databind.ObjectMapper
4
4
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
5
+ import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
5
6
import com.fasterxml.jackson.module.kotlin.readValue
6
7
import java.time.LocalDate
7
8
import kotlin.test.Test
@@ -14,7 +15,7 @@ internal class DateTimeTest {
14
15
@ExperimentalTime
15
16
@Test
16
17
fun `Parse vedtaksdato to LocalDate` () {
17
- val mapper = ObjectMapper ()
18
+ val mapper = jacksonObjectMapper ()
18
19
mapper.registerModule(JavaTimeModule ())
19
20
20
21
val result: Statusinfo = mapper.readValue(
You can’t perform that action at this time.
0 commit comments