@Test
public void serializeAtomMediaResourceLinks() throws IOException, XpathException, SAXException, XMLStreamException,
FactoryConfigurationError, ODataException {
AtomEntityProvider ser = createAtomEntityProvider();
ODataResponse response =
ser.writeEntry(MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet("Employees"), employeeData,
DEFAULT_PROPERTIES);
String xmlString = verifyResponse(response);
String rel = Edm.NAMESPACE_REL_2007_08 + "ne_Manager";
assertXpathExists("/a:entry/a:link[@href=\"Employees('1')/ne_Manager\"]", xmlString);
assertXpathExists("/a:entry/a:link[@rel='" + rel + "']", xmlString);
assertXpathExists("/a:entry/a:link[@type='application/atom+xml;type=entry']", xmlString);
assertXpathExists("/a:entry/a:link[@title='ne_Manager']", xmlString);
}
AtomEntryProducerTest.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:olingo-odata2
作者:
评论列表
文章目录