Commit e82b941c authored by R.W.Majeed's avatar R.W.Majeed

Test case for request timestamps

parent 5e2266a5
Pipeline #1263 skipped
......@@ -91,5 +91,12 @@ public class TestUnmarshallDocuments {
validator.validate(getResource("/request.xml"));
}
@Test
public void unmarshallRequest(){
QueryRequest r = JAXB.unmarshal(getResource("/request.xml"), QueryRequest.class);
Assert.assertNotNull(r.published);
Assert.assertNotNull(r.deadline);
}
}
......@@ -3,6 +3,8 @@
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xml="http://www.w3.org/XML/1998/namespace">
<id>123</id>
<published>2016-04-28T00:00:00Z</published>
<deadline>2016-04-30T00:00:00Z</deadline>
<xi:include href="query.xml"/>
</queryRequest>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment