@Test public void complexPropertyNullValueNotAllowedButNotValidated() throws Exception { final EdmProperty property = (EdmProperty) MockFacade.getMockEdm().getDefaultEntityContainer() .getEntitySet("Employees").getEntityType().getProperty("Location"); EdmFacets facets = mock(EdmFacets.class); when(facets.isNullable()).thenReturn(false); when(property.getFacets()).thenReturn(facets); final DeserializerProperties readProperties = mock(DeserializerProperties.class); final Map<String, Object> propertyData = new JsonPropertyDeserializer() .readPropertyStandalone(prepareReader("{\"Location\":null}"), property, readProperties); assertNotNull(propertyData); assertEquals(1, propertyData.size()); assertTrue(propertyData.containsKey("Location")); assertNull(propertyData.get("Location")); }
public Map<String, Object> readPropertyStandalone(JsonReader reader, final EdmProperty edmProperty, final DeserializerProperties readProperties) throws EntityProviderException { return readPropertyStandalone(reader, EntityInfoAggregator.create(edmProperty), readProperties); }
JsonPropertyDeserializer { public Map<String, Object> readPropertyStandalone(JsonReader reader, final EdmProperty edmProperty, final DeserializerProperties readProperties) throws EntityProviderException { return readPropertyStandalone(reader, EntityInfoAggregator.create(edmProperty), readProperties); } }
JsonPropertyDeserializer { public Map<String, Object> readPropertyStandalone(JsonReader reader, final EdmProperty edmProperty, final DeserializerProperties readProperties) throws EntityProviderException { return readPropertyStandalone(reader, EntityInfoAggregator.create(edmProperty), readProperties); }  }
JsonPropertyDeserializer { public Map<String, Object> readPropertyStandalone(JsonReader reader, final EdmProperty edmProperty, final DeserializerProperties readProperties) throws EntityProviderException { return readPropertyStandalone(reader, EntityInfoAggregator.create(edmProperty), readProperties); }  Map<String, Object> readPropertyStandalone(JsonReader reader, final EdmProperty edmProperty,
      final DeserializerProperties readProperties); Map<String, Object> readPropertyStandalone(final JsonReader reader, final EntityPropertyInfo propertyInfo,
      final DeserializerProperties readProperties); List<?> readCollection(JsonReader reader, final EntityPropertyInfo propertyInfo,
        final DeserializerProperties readProperties); }
JsonPropertyDeserializer { public Map<String, Object> readPropertyStandalone(JsonReader reader, final EdmProperty edmProperty, final DeserializerProperties readProperties) throws EntityProviderException { return readPropertyStandalone(reader, EntityInfoAggregator.create(edmProperty), readProperties); }  Map<String, Object> readPropertyStandalone(JsonReader reader, final EdmProperty edmProperty,
      final DeserializerProperties readProperties); Map<String, Object> readPropertyStandalone(final JsonReader reader, final EntityPropertyInfo propertyInfo,
      final DeserializerProperties readProperties); List<?> readCollection(JsonReader reader, final EntityPropertyInfo propertyInfo,
        final DeserializerProperties readProperties);  }