Skip to content

Commit

Permalink
T - Sletter utkommentert kode
Browse files Browse the repository at this point in the history
  • Loading branch information
dskarpas committed Sep 17, 2024
1 parent 8abdeba commit 0ad703d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,7 @@ class IntegrasjonsTestConfig {

@Bean
fun etterlatteRestTemplate(): RestTemplate {
return mockedRestTemplate().apply {
//every { getForEntity("/api/sak/", String::class.java) } returns ResponseEntity("Mocked Response", HttpStatus.OK)
}
return mockedRestTemplate()
}

@Bean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ import org.springframework.web.client.RestTemplate
)
internal class SedSendtIntegrationTest : IntegrasjonsBase() {

// @Autowired
// private lateinit var etterlatteService: EtterlatteService

@Autowired
private lateinit var gcpStorageService: GcpStorageService

Expand All @@ -58,7 +55,6 @@ internal class SedSendtIntegrationTest : IntegrasjonsBase() {
justRun { gcpStorageService.lagreJournalpostDetaljer(any(), any(), any(), any(), any()) }
every { gcpStorageService.hentFraJournal(any()) } returns null
every { gcpStorageService.arkiverteSakerForRinaId(any(), any()) } returns emptyList()
// every { etterlatteService.hentGjennySak(any()) } returns "1234"
}

@TestConfiguration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ internal open class JournalforingTestBase {
ReflectionTestUtils.setField(kravHandler, "kravTopic", "kravTopic")
journalforingService.nameSpace = "test"
every { gcpStorageService.gjennyFinnes(any()) } returns false
// every { etterlatteService.hentGjennySak(any()) } returns "123456789"
}

@AfterEach
Expand Down

0 comments on commit 0ad703d

Please sign in to comment.