Skip to content

Commit

Permalink
T - Fikser feilende test for EuxControllerTest
Browse files Browse the repository at this point in the history
  • Loading branch information
dskarpas committed Sep 27, 2024
1 parent a02680b commit d2280d7
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,15 @@ class EuxControllerTest {

}

// @Test
// fun `gitt en liste over landkoder over instusjoner fra eux med liste så retureres den`() {
//
// val result = euxController.getPaakobledeland(P_BUC_06)
//
// val list = mapJsonToAny<List<String>>(result.body!!)
// assertEquals(1, list.size)
// }
@Test
fun `gitt en liste over landkoder over instusjoner fra eux med liste så retureres den`() {
every { mockEuxInnhentingService.getInstitutions(any(), "") } returns listOf(InstitusjonItem("NO", "31231","3123"))

val result = euxController.getPaakobledeland(P_BUC_06)

val list = mapJsonToAny<List<String>>(result.body!!)
assertEquals(1, list.size)
}

@Test
fun `Gitt at vi skal sende en P2000 saa returneres true etter sending`() {
Expand Down

0 comments on commit d2280d7

Please sign in to comment.