aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-05-13 09:19:49 +0200
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-05-13 09:19:49 +0200
commitcffae5be804f0c27f81f68eb70ef851b793db124 (patch)
tree079856a8393639467619af30ff367d3ac09144c0 /src/test/java
parent8306ffe75de8e6bfaa01fc5ee7657c168edbabc0 (diff)
downloadmoa-zs-cffae5be804f0c27f81f68eb70ef851b793db124.tar.gz
moa-zs-cffae5be804f0c27f81f68eb70ef851b793db124.tar.bz2
moa-zs-cffae5be804f0c27f81f68eb70ef851b793db124.zip
Test: Add Assertion in Mzs2MsgConverterTest
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/at/gv/egiz/moazs/Mzs2MsgConverterTest.java6
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>");
}