@Test public void veryLongStringStandalone() throws Exception { char[] chars = new char[32768]; Arrays.fill(chars, 0, 32768, 'a'); String propertyValue = new String(chars); String simplePropertyJson = "{\"d\":{\"Name\":\"" + propertyValue + "\"}}"; JsonReader reader = prepareReader(simplePropertyJson); final EdmProperty edmProperty = (EdmProperty) MockFacade.getMockEdm().getEntityType("RefScenario", "Room").getProperty("Name"); EntityProviderReadProperties readProperties = mock(EntityProviderReadProperties.class); when(readProperties.getTypeMappings()).thenReturn(null); Map<String, Object> resultMap = new JsonPropertyConsumer().readPropertyStandalone(reader, edmProperty, readProperties); assertEquals(propertyValue, 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);  }