@Test public void testUpdateEntity(){ Entity entity = new GraphEntity.Builder().setID(Entity.ID.valueOf("test-entity")).build(); GraphAttributeOperations operations = new GraphAttributeOperations(); UpdateEntity updateEntity = new UpdateEntity(entity , operations ); assertEquals(updateEntity.getEntity(), entity); assertEquals(updateEntity.getOperations(), operations); assertEquals(updateEntity.toString(), "Operation [Update Entity] entity id [test-entity]"); }
public UpdateEntity(Entity entity, GraphAttributeOperations operations) { super(); this.entity = entity; this.operations = operations; }
UpdateEntity implements Operation { public UpdateEntity(Entity entity, GraphAttributeOperations operations) { super(); this.entity = entity; this.operations = operations; } }
UpdateEntity implements Operation { public UpdateEntity(Entity entity, GraphAttributeOperations operations) { super(); this.entity = entity; this.operations = operations; } UpdateEntity(Entity entity, GraphAttributeOperations operations); }
UpdateEntity implements Operation { public UpdateEntity(Entity entity, GraphAttributeOperations operations) { super(); this.entity = entity; this.operations = operations; } UpdateEntity(Entity entity, GraphAttributeOperations operations); Entity getEntity(); GraphAttributeOperations getOperations(); @Override String toString(); }
UpdateEntity implements Operation { public UpdateEntity(Entity entity, GraphAttributeOperations operations) { super(); this.entity = entity; this.operations = operations; } UpdateEntity(Entity entity, GraphAttributeOperations operations); Entity getEntity(); GraphAttributeOperations getOperations(); @Override String toString();  }