Skip to content

Commit

Permalink
chore: clean up lint
Browse files Browse the repository at this point in the history
  • Loading branch information
MikAoJk committed Sep 13, 2024
1 parent f2d6b92 commit 0671a09
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import no.nav.syfo.ws.createPort
import no.nhn.register.common2.ArrayOfCode
import no.nhn.register.common2.Code
import no.nhn.schemas.reg.flr.ContractsQueryParameters
import no.nhn.schemas.reg.flr.FlrExportService
import no.nhn.schemas.reg.flr.IFlrExportOperations
import no.nhn.schemas.reg.flr.IFlrExportOperationsExportGPContractsGenericFaultFaultFaultMessage
import org.apache.cxf.binding.soap.SoapMessage
Expand Down
11 changes: 6 additions & 5 deletions src/main/kotlin/no/nav/syfo/plugins/DependencyInjection.kt
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,12 @@ val fastlegeinformasjonModule = module {
single {
val env = get<Environment>()
val serviceUser = get<ServiceUser>()
val operation = fastlegeinformasjonV2(
env.fastlegeinformasjonv2EndpointURL,
serviceUser.serviceuserUsername,
serviceUser.serviceuserPassword,
)
val operation =
fastlegeinformasjonV2(
env.fastlegeinformasjonv2EndpointURL,
serviceUser.serviceuserUsername,
serviceUser.serviceuserPassword,
)
FastlegeinformasjonService(operation)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,11 @@ import org.junit.jupiter.api.Test
import org.junit.jupiter.api.TestInstance
import org.junit.jupiter.api.assertDoesNotThrow


@TestInstance(TestInstance.Lifecycle.PER_CLASS)
internal class FastlegeinformasjonServiceTest {


@Test
fun shouldCreatePort() {
assertDoesNotThrow {
fastlegeinformasjonV2("", "", "")
}

assertDoesNotThrow { fastlegeinformasjonV2("", "", "") }
}

}

0 comments on commit 0671a09

Please sign in to comment.