@Test public void testPipelineUpdate() { final float delta = 1.0f; mockery.checking(new Expectations() { { oneOf(operation1).update(gc, delta); oneOf(operation2).update(gc, delta); } }); pipeline.update(gc, delta); }
public void update(GameContainer gc, float delta) { for(RenderOperation stage : operations) { stage.update(gc, delta); } }
RenderPipeline { public void update(GameContainer gc, float delta) { for(RenderOperation stage : operations) { stage.update(gc, delta); } } }
RenderPipeline { public void update(GameContainer gc, float delta) { for(RenderOperation stage : operations) { stage.update(gc, delta); } } RenderPipeline(); }
RenderPipeline { public void update(GameContainer gc, float delta) { for(RenderOperation stage : operations) { stage.update(gc, delta); } } RenderPipeline(); void update(GameContainer gc, float delta); void interpolate(GameContainer gc, float alpha); void render(GameContainer gc, Graphics g); void add(RenderOperation operation); void remove(RenderOperation operation); boolean isOneWay(); void setOneWay(boolean oneWay); }
RenderPipeline { public void update(GameContainer gc, float delta) { for(RenderOperation stage : operations) { stage.update(gc, delta); } } RenderPipeline(); void update(GameContainer gc, float delta); void interpolate(GameContainer gc, float alpha); void render(GameContainer gc, Graphics g); void add(RenderOperation operation); void remove(RenderOperation operation); boolean isOneWay(); void setOneWay(boolean oneWay);  }