Skip to content

Commit b6ef96a

Browse files
authored
remove unnecessary usage of IsEqualToIgnoringWhitespace() (#1395)
1 parent 61056ff commit b6ef96a

File tree

32 files changed

+13
-94
lines changed

32 files changed

+13
-94
lines changed

service/src/test/java/uk/nhs/adaptors/gp2gp/ehr/mapper/ObservationStatementMapperTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ void When_MappingObservationJson_Expect_ObservationStatementXmlOutput(String inp
261261
Observation parsedObservation = new FhirParseService().parseResource(jsonInput, Observation.class);
262262

263263
String outputMessage = observationStatementMapper.mapObservationToObservationStatement(parsedObservation, false);
264-
assertThat(outputMessage).isEqualToIgnoringWhitespace(expectedOutputMessage);
264+
assertThat(outputMessage).isEqualTo(expectedOutputMessage);
265265
}
266266

267267
@ParameterizedTest

service/src/test/resources/ehr/mapper/observation/expected-output-observation-statement-1.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
<center value="20100714163251"/>
88
</effectiveTime>
99
<availabilityTime value="20100714163251"/>
10-
11-
1210
<pertinentInformation typeCode="PERT">
1311
<sequenceNumber value="+1" />
1412
<pertinentAnnotation classCode="OBS" moodCode="EVN">
@@ -27,6 +25,5 @@ The line below contains special characters...
2725
¬`1234567890!&quot;£$%^&amp;*()_+=-{}][~@#&apos;:;&lt;&gt;?,./|\</text>
2826
</pertinentAnnotation>
2927
</pertinentInformation>
30-
3128
</ObservationStatement>
3229
</component>

service/src/test/resources/ehr/mapper/observation/expected-output-observation-statement-10.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,11 @@
77
<center value="20190601113000"/>
88
</effectiveTime>
99
<availabilityTime value="20190601113000"/>
10-
11-
1210
<pertinentInformation typeCode="PERT">
1311
<sequenceNumber value="+1" />
1412
<pertinentAnnotation classCode="OBS" moodCode="EVN">
1513
<text>Range: Text: Test reference range text High: 20 Test comment</text>
1614
</pertinentAnnotation>
1715
</pertinentInformation>
18-
1916
</ObservationStatement>
2017
</component>

service/src/test/resources/ehr/mapper/observation/expected-output-observation-statement-11.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
<center value="20190601113000"/>
88
</effectiveTime>
99
<availabilityTime value="20190601113000"/>
10-
11-
<interpretationCode code="HI" codeSystem="2.16.840.1.113883.2.1.6.5" displayName="Above high reference limit">
10+
<interpretationCode code="HI" codeSystem="2.16.840.1.113883.2.1.6.5" displayName="Above high reference limit">
1211
<originalText>Very High Value</originalText>
1312
</interpretationCode>
1413

@@ -18,6 +17,5 @@
1817
<text>Range: Text: Test reference range text High: 20 Test comment</text>
1918
</pertinentAnnotation>
2019
</pertinentInformation>
21-
2220
</ObservationStatement>
2321
</component>

service/src/test/resources/ehr/mapper/observation/expected-output-observation-statement-12.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,12 @@
77
<center value="20190601113000"/>
88
</effectiveTime>
99
<availabilityTime value="20190601113000"/>
10-
11-
1210
<pertinentInformation typeCode="PERT">
1311
<sequenceNumber value="+1" />
1412
<pertinentAnnotation classCode="OBS" moodCode="EVN">
1513
<text>Range: Text: Test reference range text High: 20 Interpretation: Example without code
1614
Test comment</text>
1715
</pertinentAnnotation>
1816
</pertinentInformation>
19-
2017
</ObservationStatement>
2118
</component>

service/src/test/resources/ehr/mapper/observation/expected-output-observation-statement-13.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,12 @@
77
<center value="20190601113000"/>
88
</effectiveTime>
99
<availabilityTime value="20190601113000"/>
10-
11-
1210
<pertinentInformation typeCode="PERT">
1311
<sequenceNumber value="+1" />
1412
<pertinentAnnotation classCode="OBS" moodCode="EVN">
1513
<text>Range: Text: Test reference range text High: 20 Interpretation: An example text string in interpretation
1614
Test comment</text>
1715
</pertinentAnnotation>
1816
</pertinentInformation>
19-
2017
</ObservationStatement>
2118
</component>

service/src/test/resources/ehr/mapper/observation/expected-output-observation-statement-14.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,12 @@
77
<center value="20190601113000"/>
88
</effectiveTime>
99
<availabilityTime value="20190601113000"/>
10-
11-
1210
<pertinentInformation typeCode="PERT">
1311
<sequenceNumber value="+1" />
1412
<pertinentAnnotation classCode="OBS" moodCode="EVN">
1513
<text>Range: Text: Test reference range text High: 20 Interpretation: Example with userSelected
1614
Test comment</text>
1715
</pertinentAnnotation>
1816
</pertinentInformation>
19-
2017
</ObservationStatement>
2118
</component>

service/src/test/resources/ehr/mapper/observation/expected-output-observation-statement-15.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
<center value="20190601113000"/>
88
</effectiveTime>
99
<availabilityTime value="20190601113000"/>
10-
11-
<interpretationCode code="HI" codeSystem="2.16.840.1.113883.2.1.6.5" displayName="Above high reference limit">
10+
<interpretationCode code="HI" codeSystem="2.16.840.1.113883.2.1.6.5" displayName="Above high reference limit">
1211
<originalText>Very High Value</originalText>
1312
</interpretationCode>
1413

@@ -18,6 +17,5 @@
1817
<text>Range: Text: Test reference range text High: 20 Test comment</text>
1918
</pertinentAnnotation>
2019
</pertinentInformation>
21-
2220
</ObservationStatement>
2321
</component>

service/src/test/resources/ehr/mapper/observation/expected-output-observation-statement-16.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
<center value="20190601113000"/>
88
</effectiveTime>
99
<availabilityTime value="20190601113000"/>
10-
11-
<interpretationCode code="LO" codeSystem="2.16.840.1.113883.2.1.6.5" displayName="Below low reference limit">
10+
<interpretationCode code="LO" codeSystem="2.16.840.1.113883.2.1.6.5" displayName="Below low reference limit">
1211
<originalText>Low Value</originalText>
1312
</interpretationCode>
1413

@@ -18,6 +17,5 @@
1817
<text>Range: Text: Test reference range text Low: 20 Test comment</text>
1918
</pertinentAnnotation>
2019
</pertinentInformation>
21-
2220
</ObservationStatement>
2321
</component>

service/src/test/resources/ehr/mapper/observation/expected-output-observation-statement-17.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
<center value="20190601113000"/>
88
</effectiveTime>
99
<availabilityTime value="20190601113000"/>
10-
11-
<interpretationCode code="PA" codeSystem="2.16.840.1.113883.2.1.6.5" displayName="Potentially abnormal">
10+
<interpretationCode code="PA" codeSystem="2.16.840.1.113883.2.1.6.5" displayName="Potentially abnormal">
1211
<originalText>Abnormal</originalText>
1312
</interpretationCode>
1413

@@ -18,6 +17,5 @@
1817
<text>Range: Text: Test reference range text High: 20 Test comment</text>
1918
</pertinentAnnotation>
2019
</pertinentInformation>
21-
2220
</ObservationStatement>
2321
</component>

0 commit comments

Comments
 (0)