Skip to content

Commit

Permalink
Fixing Instrumented tests for the new TestCQL
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorpamplona committed Nov 30, 2022
1 parent 887dee2 commit 98e3e30
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions app/src/androidTest/java/org/who/ddccverifier/QRViewTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class QRViewTest: BaseTrustRegistryTest() {
private lateinit var fhirEngine: FhirEngine
private lateinit var fhirOperator: FhirOperator

private val ddccPass = CqlBuilder.compileAndBuild(inputStream("OldPass-1.0.0.cql")!!)
private val ddccPass = CqlBuilder.compileAndBuild(inputStream("TestPass-1.0.0.cql")!!)

@Before
fun setUp() = runBlocking {
Expand Down Expand Up @@ -73,7 +73,7 @@ class QRViewTest: BaseTrustRegistryTest() {

val (results, elapsedEval) = measureTimedValue {
fhirOperator.evaluateLibrary(
"http://localhost/Library/OldPass|1.0.0",
"http://localhost/Library/TestPass|1.0.0",
patId(verified.contents),
setOf("CompletedImmunization", "GetFinalDose", "GetSingleDose")) as Parameters
}
Expand Down Expand Up @@ -121,7 +121,7 @@ class QRViewTest: BaseTrustRegistryTest() {
loadBundle(verified.contents)

val results = fhirOperator.evaluateLibrary(
"http://localhost/Library/OldPass|1.0.0",
"http://localhost/Library/TestPass|1.0.0",
patId(verified.contents),
setOf("CompletedImmunization", "GetFinalDose", "GetSingleDose")) as Parameters

Expand Down Expand Up @@ -168,7 +168,7 @@ class QRViewTest: BaseTrustRegistryTest() {
loadBundle(verified.contents)

val results = fhirOperator.evaluateLibrary(
"http://localhost/Library/OldPass|1.0.0",
"http://localhost/Library/TestPass|1.0.0",
patId(verified.contents),
setOf("CompletedImmunization", "GetFinalDose", "GetSingleDose")) as Parameters

Expand Down Expand Up @@ -219,7 +219,7 @@ class QRViewTest: BaseTrustRegistryTest() {
loadBundle(verified.contents)

val results = fhirOperator.evaluateLibrary(
"http://localhost/Library/OldPass|1.0.0",
"http://localhost/Library/TestPass|1.0.0",
patId(verified.contents),
setOf("CompletedImmunization", "GetFinalDose", "GetSingleDose")) as Parameters

Expand Down Expand Up @@ -264,7 +264,7 @@ class QRViewTest: BaseTrustRegistryTest() {
loadBundle(verified.contents)

val results = fhirOperator.evaluateLibrary(
"http://localhost/Library/OldPass|1.0.0",
"http://localhost/Library/TestPass|1.0.0",
patId(verified.contents),
setOf("CompletedImmunization", "GetFinalDose", "GetSingleDose")) as Parameters

Expand Down Expand Up @@ -352,7 +352,7 @@ class QRViewTest: BaseTrustRegistryTest() {
loadBundle(verified.contents)

val results = fhirOperator.evaluateLibrary(
"http://localhost/Library/OldPass|1.0.0",
"http://localhost/Library/TestPass|1.0.0",
patId(verified.contents),
setOf("CompletedImmunization", "GetFinalDose", "GetSingleDose")) as Parameters

Expand Down Expand Up @@ -397,7 +397,7 @@ class QRViewTest: BaseTrustRegistryTest() {
loadBundle(verified.contents)

val results = fhirOperator.evaluateLibrary(
"http://localhost/Library/OldPass|1.0.0",
"http://localhost/Library/TestPass|1.0.0",
patId(verified.contents),
setOf("CompletedImmunization", "GetFinalDose", "GetSingleDose")) as Parameters

Expand Down Expand Up @@ -442,7 +442,7 @@ class QRViewTest: BaseTrustRegistryTest() {
loadBundle(verified.contents)

val results = fhirOperator.evaluateLibrary(
"http://localhost/Library/OldPass|1.0.0",
"http://localhost/Library/TestPass|1.0.0",
patId(verified.contents),
setOf("CompletedImmunization", "GetFinalDose", "GetSingleDose")) as Parameters

Expand Down

0 comments on commit 98e3e30

Please sign in to comment.