@Test public void shouldMergePipelines () { final List<PipelineId> mergedPipelineIds = asList( regionExecPlan.getPipelineId( 1 ), regionExecPlan.getPipelineId( 2 ) ); final MergePipelinesAction action = new MergePipelinesAction( regionExecPlan, mergedPipelineIds ); final RegionExecPlan newRegionExecPlan = action.getNewExecPlan(); assertThat( newRegionExecPlan.getPipelineIds(), equalTo( asList( regionExecPlan.getPipelineId( 0 ), regionExecPlan.getPipelineId( 1 ) ) ) ); }
@Override public RegionExecPlan getNewExecPlan () { return newExecPlan; }
MergePipelinesAction implements AdaptationAction { @Override public RegionExecPlan getNewExecPlan () { return newExecPlan; } }
MergePipelinesAction implements AdaptationAction { @Override public RegionExecPlan getNewExecPlan () { return newExecPlan; } MergePipelinesAction( final RegionExecPlan execPlan, final List<PipelineId> pipelineIds ); }
MergePipelinesAction implements AdaptationAction { @Override public RegionExecPlan getNewExecPlan () { return newExecPlan; } 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 RegionExecPlan getNewExecPlan () { return newExecPlan; } 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();  }