Skip to content

Commit 940d6ef

Browse files
authored
removed unnecessary usages of IsEqualToIgnoringWhitespace() (#1397)
1 parent b6ef96a commit 940d6ef

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

service/src/test/java/uk/nhs/adaptors/gp2gp/gpc/EhrDocumentMapperTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void When_MappingJsonRequestBody_WithDocumentId_Expect_XmlOutput() {
6666
TEST_MESSAGE_ID,
6767
TEST_DOCUMENT_ID,
6868
TEXT_PLAIN
69-
)).isEqualToIgnoringWhitespace(expectedJsonToXmlContent);
69+
)).isEqualTo(expectedJsonToXmlContent);
7070
}
7171

7272
@Test
@@ -75,6 +75,6 @@ void When_MappingJsonRequestBody_WithFilename_Expect_XmlOutput() {
7575
getGpcDocumentTaskDefinition,
7676
TEST_MESSAGE_ID,
7777
TEST_FILENAME
78-
)).isEqualToIgnoringWhitespace(expectedJsonToXmlContent);
78+
)).isEqualTo(expectedJsonToXmlContent);
7979
}
8080
}

service/src/test/resources/gpc/output/ExpectedEhrDocument.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,25 @@
77
<processingModeCode code="T"/>
88
<acceptAckCode code="NE"/>
99
<communicationFunctionRcv>
10-
<device classCode="DEV" determinerCode="INSTANCE">
10+
<device classCode="DEV" determinerCode="INSTANCE">
1111
<id root="1.2.826.0.1285.0.2.0.107" extension="test-from-asid-code"/>
1212
</device>
1313
</communicationFunctionRcv>
1414
<communicationFunctionSnd>
15-
<device classCode="DEV" determinerCode="INSTANCE">
15+
<device classCode="DEV" determinerCode="INSTANCE">
1616
<id root="1.2.826.0.1285.0.2.0.107" extension="test-to-asid-code"/>
1717
</device>
1818
</communicationFunctionSnd>
19-
<ControlActEvent classCode="CACT" moodCode="EVN">
20-
<author1 typeCode="AUT">
21-
<AgentSystemSDS classCode="AGNT">
22-
<agentSystemSDS classCode="DEV" determinerCode="INSTANCE">
19+
<ControlActEvent classCode="CACT" moodCode="EVN">
20+
<author1 typeCode="AUT">
21+
<AgentSystemSDS classCode="AGNT">
22+
<agentSystemSDS classCode="DEV" determinerCode="INSTANCE">
2323
<id root="1.2.826.0.1285.0.2.0.107" extension="test-to-asid-code"/>
2424
</agentSystemSDS>
2525
</AgentSystemSDS>
2626
</author1>
27-
<subject typeCode="SUBJ" contextConductionInd="false">
28-
<PayloadInformation classCode="OBS" moodCode="EVN" xmlns="urn:hl7-org:v3" xmlns:npfitlc="NPFIT:HL7:Localisation">
27+
<subject typeCode="SUBJ" contextConductionInd="false">
28+
<PayloadInformation classCode="OBS" moodCode="EVN" xmlns="urn:hl7-org:v3" xmlns:npfitlc="NPFIT:HL7:Localisation">
2929
<code code="GP2GPLMATTACHMENTINFO" codeSystem="2.16.840.1.113883.2.1.3.2.4.17.202" displayName="GP2GP Large Message Attachment Information"/>
3030
<id root="test-message-id"/>
3131
<npfitlc:messageType root="2.16.840.1.113883.2.1.3.2.4.18.17" extension="RCMR_MT000001GB01"/>
@@ -40,9 +40,9 @@
4040
<message-id>test-message-id</message-id>
4141
</Gp2gpfragment>
4242
</value>
43-
<pertinentInformation typeCode="PERT">
43+
<pertinentInformation typeCode="PERT">
4444
<sequenceNumber value="1"/>
45-
<pertinentPayloadBody classCode="OBS" moodCode="EVN">
45+
<pertinentPayloadBody classCode="OBS" moodCode="EVN">
4646
<code code="GP2GPLMATTACHMENT" codeSystem="2.16.840.1.113883.2.1.3.2.4.17.202" displayName="GP2GP Large Message Attachment"/>
4747
<id root="test-id"/>
4848
<value><reference value="file://localhost/test-document-id.txt"/></value>

0 commit comments

Comments
 (0)