@Test public void shouldApplyAction () { final List<PipelineId> mergedPipelineIds = asList( regionExecPlan.getPipelineId( 1 ), regionExecPlan.getPipelineId( 2 ) ); final MergePipelinesAction action = new MergePipelinesAction( regionExecPlan, mergedPipelineIds ); final AdaptationPerformer adaptationPerformer = mock( AdaptationPerformer.class ); action.apply( adaptationPerformer ); verify( adaptationPerformer ).mergePipelines( mergedPipelineIds ); }
@Override public void apply ( final AdaptationPerformer performer ) { performer.mergePipelines( pipelineIds ); }
MergePipelinesAction implements AdaptationAction { @Override public void apply ( final AdaptationPerformer performer ) { performer.mergePipelines( pipelineIds ); } }
MergePipelinesAction implements AdaptationAction { @Override public void apply ( final AdaptationPerformer performer ) { performer.mergePipelines( pipelineIds ); } MergePipelinesAction( final RegionExecPlan execPlan, final List<PipelineId> pipelineIds ); }
MergePipelinesAction implements AdaptationAction { @Override public void apply ( final AdaptationPerformer performer ) { performer.mergePipelines( pipelineIds ); } MergePipelinesAction( final RegionExecPlan execPlan, final List<PipelineId> pipelineIds ); @Override void apply( final AdaptationPerformer performer ); @Override RegionExecPlan getCurrentExecPlan(); @Override RegionExecPlan getNewExecPlan(); @Override AdaptationAction revert(); @Override String toString(); @Override boolean equals( final Object o ); @Override int hashCode(); }
MergePipelinesAction implements AdaptationAction { @Override public void apply ( final AdaptationPerformer performer ) { performer.mergePipelines( pipelineIds ); } MergePipelinesAction( final RegionExecPlan execPlan, final List<PipelineId> pipelineIds ); @Override void apply( final AdaptationPerformer performer ); @Override RegionExecPlan getCurrentExecPlan(); @Override RegionExecPlan getNewExecPlan(); @Override AdaptationAction revert(); @Override String toString(); @Override boolean equals( final Object o ); @Override int hashCode();  }