@Test public void testWithEntityWhenEntityIsNotNull(){ MockMutationExecuterFactory mutationExecutionFactory = new MockMutationExecuterFactory(); GraphMutation graphMutation = new GraphMutation(mutationExecutionFactory); Mutation withEntity = graphMutation.withEntity(buildEntity()); assertNotNull(withEntity); }
@Override public Entity.Mutation withEntity(Entity entity) { Preconditions.argumentNotNull(entity, "entity"); return new GraphEntityMutation(entity, pipeline, this); }
GraphMutation implements BatchMutation { @Override public Entity.Mutation withEntity(Entity entity) { Preconditions.argumentNotNull(entity, "entity"); return new GraphEntityMutation(entity, pipeline, this); } }
GraphMutation implements BatchMutation { @Override public Entity.Mutation withEntity(Entity entity) { Preconditions.argumentNotNull(entity, "entity"); return new GraphEntityMutation(entity, pipeline, this); } @Inject  GraphMutation(MutationExecutorFactory factory); }
GraphMutation implements BatchMutation { @Override public Entity.Mutation withEntity(Entity entity) { Preconditions.argumentNotNull(entity, "entity"); return new GraphEntityMutation(entity, pipeline, this); } @Inject  GraphMutation(MutationExecutorFactory factory); @Override BatchMutation createEntity(NewEntity newEntity); @Override BatchMutation createRelationship(NewRelationship newRelationship); @Override OperationResult<Result> execute(); @Override Entity.Mutation withEntity(Entity entity); @Override Relationship.Mutation withRelationship(Relationship relationship); }
GraphMutation implements BatchMutation { @Override public Entity.Mutation withEntity(Entity entity) { Preconditions.argumentNotNull(entity, "entity"); return new GraphEntityMutation(entity, pipeline, this); } @Inject  GraphMutation(MutationExecutorFactory factory); @Override BatchMutation createEntity(NewEntity newEntity); @Override BatchMutation createRelationship(NewRelationship newRelationship); @Override OperationResult<Result> execute(); @Override Entity.Mutation withEntity(Entity entity); @Override Relationship.Mutation withRelationship(Relationship relationship);  }