assertEquals(location.getDirection(), "NORTH");
}
public void entityDocumentWithInjectableTest() {
EntityMeta<LocationInjectedEntity> entityMeta = metaBuilder.buildEntityMeta(LocationInjectedEntity.class);
JacksonCouchJsonStrategy strategy = new JacksonCouchJsonStrategy();
strategy.setMissingInjectableResponse(MissingInjectableResponse.RETURN_NULL);
SimpleCouchInjectables injectables = new SimpleCouchInjectables();
injectables.addValue("injected", "injectedValue");
strategy.setCouchInjectables(injectables);
EntityDocument<LocationInjectedEntity> entityDoc = strategy.readEntityDocument(null, entityMeta, JacksonTestSetup.locationEntityDocJson);
assertEquals(entityDoc.getDocumentId(), "1122");
assertEquals(entityDoc.getEntityType(), "Location");
assertEquals(entityDoc.getDocumentRevision(), "1-03ba856139647f1ed4694ceb1fe21751");
LocationInjectedEntity location = entityDoc.getEntity();