test_class.declarator: KIND_NAME = "FakeEntity"
test_class.modifier: private static final
test_class.original_string: private static final String KIND_NAME = "FakeEntity";
test_class.type: String
test_class.var_name: KIND_NAME
test_class.declarator: PROPERTY_NAME = "property-name"
test_class.modifier: private static final
test_class.original_string: private static final String PROPERTY_NAME = "property-name";
test_class.type: String
test_class.var_name: PROPERTY_NAME
test_class.declarator: A_NAME = "a-name"
test_class.modifier: private static final
test_class.original_string: private static final String A_NAME = "a-name";
test_class.type: String
test_class.var_name: A_NAME
test_class.declarator: ANOTHER_NAME = "another-name"
test_class.modifier: private static final
test_class.original_string: private static final String ANOTHER_NAME = "another-name";
test_class.type: String
test_class.var_name: ANOTHER_NAME
test_class.declarator: entityService
test_class.modifier: @Inject
test_class.original_string: @Inject
      EntityService entityService;
test_class.type: EntityService
test_class.var_name: entityService
test_class.file: gae-studio/gae-studio-server/src/test/java/com/arcbees/gaestudio/server/service/visualizer/EntityServiceImplTest.java
test_class.identifier: EntityServiceImplTest
test_class.superclass: extends GaeTestBase
test_case.body: @Test
      public void updateEntity_entityStored_shouldUpdateEntity() throws EntityNotFoundException {
          // given
          Entity sentEntity = createEntityInDatastore(KIND_NAME, PROPERTY_NAME, A_NAME);
          Long entityId = sentEntity.getKey().getId();
  
          // when
          sentEntity.setProperty(PROPERTY_NAME, ANOTHER_NAME);
          entityService.updateEntity(sentEntity);
  
          // then
          Entity savedEntity = getEntityFromEntityResource(entityId);
  
          assertEquals(ANOTHER_NAME, savedEntity.getProperty(PROPERTY_NAME));
      }
test_case.class_method_signature: EntityServiceImplTest.updateEntity_entityStored_shouldUpdateEntity()
test_case.full_signature: @Test public void updateEntity_entityStored_shouldUpdateEntity()
test_case.identifier: updateEntity_entityStored_shouldUpdateEntity
test_case.invocations: createEntityInDatastore getId getKey setProperty updateEntity getEntityFromEntityResource assertEquals getProperty
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void updateEntity_entityStored_shouldUpdateEntity()
focal_class.declarator: datastoreHelper
focal_class.modifier: private final
focal_class.original_string: private final DatastoreHelper datastoreHelper;
focal_class.type: DatastoreHelper
focal_class.var_name: datastoreHelper
focal_class.file: gae-studio/gae-studio-server/src/main/java/com/arcbees/gaestudio/server/service/visualizer/EntityServiceImpl.java
focal_class.identifier: EntityServiceImpl
focal_class.interfaces: implements EntityService
focal_class.class_method_signature: EntityServiceImpl.EntityServiceImpl(
              DatastoreHelper datastoreHelper)
focal_class.full_signature: @Inject  EntityServiceImpl(
              DatastoreHelper datastoreHelper)
focal_class.identifier: EntityServiceImpl
focal_class.modifiers: @Inject
focal_class.parameters: (
              DatastoreHelper datastoreHelper)
focal_class.signature:  EntityServiceImpl(
              DatastoreHelper datastoreHelper)
focal_class.class_method_signature: EntityServiceImpl.getEntity(String encodedKey)
focal_class.full_signature: @Override public Entity getEntity(String encodedKey)
focal_class.identifier: getEntity
focal_class.modifiers: @Override public
focal_class.parameters: (String encodedKey)
focal_class.return: Entity
focal_class.signature: Entity getEntity(String encodedKey)
focal_class.class_method_signature: EntityServiceImpl.updateEntity(Entity entity)
focal_class.full_signature: @Override public Entity updateEntity(Entity entity)
focal_class.identifier: updateEntity
focal_class.modifiers: @Override public
focal_class.parameters: (Entity entity)
focal_class.return: Entity
focal_class.signature: Entity updateEntity(Entity entity)
focal_class.class_method_signature: EntityServiceImpl.deleteEntity(Key entityKey)
focal_class.full_signature: @Override public void deleteEntity(Key entityKey)
focal_class.identifier: deleteEntity
focal_class.modifiers: @Override public
focal_class.parameters: (Key entityKey)
focal_class.return: void
focal_class.signature: void deleteEntity(Key entityKey)
focal_method.body: @Override
      public Entity updateEntity(Entity entity) throws EntityNotFoundException {
          AppEngineHelper.disableApiHooks();
  
          entity.getKey();
  
          DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();
          datastore.put(entity);
  
          // This is required because put does not update the prototype in the reference
          return datastore.get(entity.getKey());
      }
focal_method.class_method_signature: EntityServiceImpl.updateEntity(Entity entity)
focal_method.full_signature: @Override public Entity updateEntity(Entity entity)
focal_method.identifier: updateEntity
focal_method.invocations: disableApiHooks getKey getDatastoreService put get getKey
focal_method.modifiers: @Override public
focal_method.parameters: (Entity entity)
focal_method.return: Entity
focal_method.signature: Entity updateEntity(Entity entity)