diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/test/java/at/gv/egiz/moazs/Mzs2MsgConverterTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/java/at/gv/egiz/moazs/Mzs2MsgConverterTest.java b/src/test/java/at/gv/egiz/moazs/Mzs2MsgConverterTest.java index d0df4db..2564121 100644 --- a/src/test/java/at/gv/egiz/moazs/Mzs2MsgConverterTest.java +++ b/src/test/java/at/gv/egiz/moazs/Mzs2MsgConverterTest.java @@ -17,6 +17,8 @@ import java.io.BufferedInputStream; import java.io.FileInputStream; import java.io.IOException; +import static org.assertj.core.api.Assertions.assertThat; + @RunWith(SpringRunner.class) @SpringBootTest public class Mzs2MsgConverterTest { @@ -44,15 +46,13 @@ public class Mzs2MsgConverterTest { JAXBElement<DeliveryRequestType> mzsRequest = mzsMarshaller.unmarshallXml(inputStream); - logger.info("mzs request: {}", mzsMarshaller.marshallXml(mzsRequest)); - var msgRequest = converter.convert(mzsRequest.getValue()); var jaxbMsgRequest = new ObjectFactory().createDeliveryRequest(msgRequest); String msgRequestXML = msgMarshaller.marshallXml(jaxbMsgRequest); - logger.info("msg request: {}", msgRequestXML); + assertThat(msgRequestXML).contains("<AppDeliveryID>valid-delivery-request-id</AppDeliveryID>"); } |