From cffae5be804f0c27f81f68eb70ef851b793db124 Mon Sep 17 00:00:00 2001 From: Christof Rabensteiner Date: Mon, 13 May 2019 09:19:49 +0200 Subject: Test: Add Assertion in Mzs2MsgConverterTest --- src/test/java/at/gv/egiz/moazs/Mzs2MsgConverterTest.java | 6 +++--- 1 file 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 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("valid-delivery-request-id"); } -- cgit v1.2.3