@Test public void simplePropertyNull() throws Exception { JsonReader reader = prepareReader("{\"Name\":null}"); final EdmProperty property = (EdmProperty) MockFacade.getMockEdm().getEntityType("RefScenario", "Room").getProperty("Name"); final Map<String, Object> resultMap = new JsonPropertyConsumer().readPropertyStandalone(reader, property, null); assertTrue(resultMap.containsKey("Name")); assertNull(resultMap.get("Name")); }
public Map<String, Object> readPropertyStandalone(JsonReader reader, final EdmProperty edmProperty, final EntityProviderReadProperties readProperties) throws EntityProviderException { return readPropertyStandalone(reader, EntityInfoAggregator.create(edmProperty), readProperties); }
JsonPropertyConsumer { public Map<String, Object> readPropertyStandalone(JsonReader reader, final EdmProperty edmProperty, final EntityProviderReadProperties readProperties) throws EntityProviderException { return readPropertyStandalone(reader, EntityInfoAggregator.create(edmProperty), readProperties); } }
JsonPropertyConsumer { public Map<String, Object> readPropertyStandalone(JsonReader reader, final EdmProperty edmProperty, final EntityProviderReadProperties readProperties) throws EntityProviderException { return readPropertyStandalone(reader, EntityInfoAggregator.create(edmProperty), readProperties); }  }
JsonPropertyConsumer { public Map<String, Object> readPropertyStandalone(JsonReader reader, final EdmProperty edmProperty, final EntityProviderReadProperties readProperties) throws EntityProviderException { return readPropertyStandalone(reader, EntityInfoAggregator.create(edmProperty), readProperties); }  Map<String, Object> readPropertyStandalone(JsonReader reader, final EdmProperty edmProperty,
      final EntityProviderReadProperties readProperties); Map<String, Object> readPropertyStandalone(final JsonReader reader, final EntityPropertyInfo propertyInfo,
      final EntityProviderReadProperties readProperties); List<?> readCollection(JsonReader reader, final EntityPropertyInfo propertyInfo,
        final EntityProviderReadProperties readProperties); }
JsonPropertyConsumer { public Map<String, Object> readPropertyStandalone(JsonReader reader, final EdmProperty edmProperty, final EntityProviderReadProperties readProperties) throws EntityProviderException { return readPropertyStandalone(reader, EntityInfoAggregator.create(edmProperty), readProperties); }  Map<String, Object> readPropertyStandalone(JsonReader reader, final EdmProperty edmProperty,
      final EntityProviderReadProperties readProperties); Map<String, Object> readPropertyStandalone(final JsonReader reader, final EntityPropertyInfo propertyInfo,
      final EntityProviderReadProperties readProperties); List<?> readCollection(JsonReader reader, final EntityPropertyInfo propertyInfo,
        final EntityProviderReadProperties readProperties);  }