Skip to content

Commit

Permalink
test: don't use full input resource name to avoid "filename too long"…
Browse files Browse the repository at this point in the history
… errors
  • Loading branch information
chgl committed Nov 8, 2023
1 parent fcf1561 commit d8cf05d
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 344 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ void mapCondition_withGivenAdtXml(
Approvals.verify(
fhirJson,
Approvals.NAMES
.withParameters(xmlFileNames.stream().map(t -> t.getFirst()).toArray(String[]::new))
.withParameters(
xmlFileNames.stream()
.map(t -> t.getFirst().substring(0, 5))
.toArray(String[]::new))
.forFile()
.withExtension(".fhir.json"));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ void mapMedicationStatement_withGivenAdtXml(
Approvals.verify(
fhirJson,
Approvals.NAMES
.withParameters(xmlFileNames.stream().map(t -> t.getFirst()).toArray(String[]::new))
.withParameters(
xmlFileNames.stream()
.map(t -> t.getFirst().substring(0, 5))
.toArray(String[]::new))
.forFile()
.withExtension(".fhir.json"));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ void mapObservation_withGivenAdtXml(
Approvals.verify(
fhirJson,
Approvals.NAMES
.withParameters(xmlFileNames.stream().map(t -> t.getFirst()).toArray(String[]::new))
.withParameters(
xmlFileNames.stream()
.map(t -> t.getFirst().substring(0, 5))
.toArray(String[]::new))
.forFile()
.withExtension(".fhir.json"));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,10 @@ void mapProcedure_withGivenAdtXml(
Approvals.verify(
fhirJson,
Approvals.NAMES
.withParameters(xmlFileNames.stream().map(t -> t.getFirst()).toArray(String[]::new))
.withParameters(
xmlFileNames.stream()
.map(t -> t.getFirst().substring(0, 5))
.toArray(String[]::new))
.forFile()
.withExtension(".fhir.json"));
}
Expand Down

This file was deleted.

0 comments on commit d8cf05d

Please sign in to comment.