@Test public void ignoringValidation() throws Exception { final String xml = "<Name xmlns=\"" + Edm.NAMESPACE_D_2007_08 + "\">TooLongName</Name>"; EdmProperty property = (EdmProperty) MockFacade.getMockEdm().getEntityType("RefScenario", "Team") .getProperty("Name"); EdmFacets facets = mock(EdmFacets.class); when(facets.getMaxLength()).thenReturn(10); when(property.getFacets()).thenReturn(facets); final EntityProviderReadProperties readProperties = mock(EntityProviderReadProperties.class); final Map<String, Object> resultMap = new XmlPropertyConsumer() .readProperty(createReaderForTest(xml, true), property, readProperties); assertTrue(resultMap.containsKey("Name")); assertEquals("TooLongName", resultMap.get("Name")); }
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);  }