Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenreup committed Feb 1, 2024
1 parent 5791c65 commit 58bedc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import ca.uhn.fhir.context.FhirVersionEnum
import ca.uhn.fhir.parser.IParser
import dagger.hilt.android.testing.HiltTestApplication
import io.mockk.clearAllMocks
import io.mockk.mockk
import java.io.File
import java.io.FileReader
import java.util.Base64
Expand Down Expand Up @@ -122,7 +123,7 @@ abstract class RobolectricTest {
contextR4.setExpansionProfile(Parameters())
contextR4.isCanRunWithoutTerminology = true

val transformSupportServices = TransformSupportServices(contextR4)
val transformSupportServices = TransformSupportServices(contextR4, mockk())

return StructureMapUtilities(contextR4, transformSupportServices)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class SimpleDetailsActivityTest : RobolectricTest() {
contextR4.setExpansionProfile(Parameters())
contextR4.isCanRunWithoutTerminology = true

val transformSupportServices = TransformSupportServices(contextR4)
val transformSupportServices = TransformSupportServices(contextR4, mockk())

val scu = org.hl7.fhir.r4.utils.StructureMapUtilities(contextR4, transformSupportServices)
val map = scu.parse(g6pdStructureMap, "PatientRegistration")
Expand Down Expand Up @@ -127,7 +127,7 @@ class SimpleDetailsActivityTest : RobolectricTest() {
contextR4.setExpansionProfile(Parameters())
contextR4.isCanRunWithoutTerminology = true

val transformSupportServices = TransformSupportServices(contextR4)
val transformSupportServices = TransformSupportServices(contextR4, mockk())

val scu = org.hl7.fhir.r4.utils.StructureMapUtilities(contextR4, transformSupportServices)
val map = scu.parse(g6pdStructureMap, "TestResults")
Expand Down

0 comments on commit 58bedc3

Please sign in to comment.