File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
src/test/kotlin/io/github/projectmapk/jackson/module/kogera/zPorted/test/github Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -62,8 +62,10 @@ private class TestGithub56 {
6262 }
6363
6464 @Test
65- fun deserializesWithError () {
66- assertThrows<InvalidDefinitionException > { mapper.readValue<TestGalleryWidget_BAD >(validJson) }
65+ fun deserializesSuccessful () {
66+ val obj = mapper.readValue<TestGalleryWidget_BAD >(validJson)
67+ assertEquals(" widgetReferenceId" , obj.widgetReferenceId)
68+ assertEquals(gallery, obj.gallery)
6769 }
6870
6971 @Test
Original file line number Diff line number Diff line change @@ -19,10 +19,8 @@ class TestGithub50 {
1919 @Test
2020 fun testGithub50UnwrappedError () {
2121 val json = """ {"firstName":"John","lastName":"Smith","position":"Manager"}"""
22- expectFailure<InvalidDefinitionException >(" GitHub #50 has been fixed!" ) {
23- val obj: Employee = jacksonObjectMapper().readValue(json)
24- assertEquals(Name (" John" , " Smith" ), obj.name)
25- assertEquals(" Manager" , obj.position)
26- }
22+ val obj: Employee = jacksonObjectMapper().readValue(json)
23+ assertEquals(Name (" John" , " Smith" ), obj.name)
24+ assertEquals(" Manager" , obj.position)
2725 }
2826}
You can’t perform that action at this time.
0 commit comments