@Test(expected = EntityProviderException.class) public void readComplexPropertyWithInvalidChild() throws Exception { String xml = "<Location xmlns=\"" + Edm.NAMESPACE_D_2007_08 + "\"" + " xmlns:m=\"" + Edm.NAMESPACE_M_2007_08 + "\" m:type=\"RefScenario.c_Location\">" + "<Invalid>Germany</Invalid>" + "<City m:type=\"RefScenario.c_City\">" + "<PostalCode>69124</PostalCode>" + "<CityName>Heidelberg</CityName>" + "</City>" + "</Location>"; XMLStreamReader reader = createReaderForTest(xml, true); final EdmProperty property = (EdmProperty) MockFacade.getMockEdm().getEntityType("RefScenario", "Employee").getProperty("Location"); new XmlPropertyConsumer().readProperty(reader, property, null); }
public Map<String, Object> readProperty(final XMLStreamReader reader, final EdmProperty property, final EntityProviderReadProperties readProperties) throws EntityProviderException { return readProperty(reader, EntityInfoAggregator.create(property), readProperties); }
XmlPropertyConsumer { public Map<String, Object> readProperty(final XMLStreamReader reader, final EdmProperty property, final EntityProviderReadProperties readProperties) throws EntityProviderException { return readProperty(reader, EntityInfoAggregator.create(property), readProperties); } }
XmlPropertyConsumer { public Map<String, Object> readProperty(final XMLStreamReader reader, final EdmProperty property, final EntityProviderReadProperties readProperties) throws EntityProviderException { return readProperty(reader, EntityInfoAggregator.create(property), readProperties); }  }
XmlPropertyConsumer { public Map<String, Object> readProperty(final XMLStreamReader reader, final EdmProperty property, final EntityProviderReadProperties readProperties) throws EntityProviderException { return readProperty(reader, EntityInfoAggregator.create(property), readProperties); }  Map<String, Object> readProperty(final XMLStreamReader reader, final EdmProperty property,
      final EntityProviderReadProperties readProperties); Map<String, Object> readProperty(final XMLStreamReader reader, final EntityPropertyInfo propertyInfo,
      final EntityProviderReadProperties readProperties); List<?> readCollection(XMLStreamReader reader, final EntityPropertyInfo info,
      final EntityProviderReadProperties properties); }
XmlPropertyConsumer { public Map<String, Object> readProperty(final XMLStreamReader reader, final EdmProperty property, final EntityProviderReadProperties readProperties) throws EntityProviderException { return readProperty(reader, EntityInfoAggregator.create(property), readProperties); }  Map<String, Object> readProperty(final XMLStreamReader reader, final EdmProperty property,
      final EntityProviderReadProperties readProperties); Map<String, Object> readProperty(final XMLStreamReader reader, final EntityPropertyInfo propertyInfo,
      final EntityProviderReadProperties readProperties); List<?> readCollection(XMLStreamReader reader, final EntityPropertyInfo info,
      final EntityProviderReadProperties properties);  }