@Test public void testGetSourceAreaReturnsAZeroedOriginAndImageSizedArea() { RenderImage image = createMock(RenderImage.class); expect(image.getWidth()).andReturn(1); expect(image.getHeight()).andReturn(2); replay(image); FullImageAreaProvider areaProvider = new FullImageAreaProvider(); assertEquals(new Box(0, 0, 1, 2), areaProvider.getSourceArea(image)); }
@Nonnull @Override public Box getSourceArea(@Nonnull RenderImage renderImage) { return new Box(0, 0, renderImage.getWidth(), renderImage.getHeight()); }
FullImageAreaProvider implements AreaProvider { @Nonnull @Override public Box getSourceArea(@Nonnull RenderImage renderImage) { return new Box(0, 0, renderImage.getWidth(), renderImage.getHeight()); } }
FullImageAreaProvider implements AreaProvider { @Nonnull @Override public Box getSourceArea(@Nonnull RenderImage renderImage) { return new Box(0, 0, renderImage.getWidth(), renderImage.getHeight()); }  }
FullImageAreaProvider implements AreaProvider { @Nonnull @Override public Box getSourceArea(@Nonnull RenderImage renderImage) { return new Box(0, 0, renderImage.getWidth(), renderImage.getHeight()); }  @Override void setParameters(@Nullable String parameters); @Nonnull @Override Box getSourceArea(@Nonnull RenderImage renderImage); @Nonnull @Override Size getNativeSize(@Nonnull NiftyImage image); }
FullImageAreaProvider implements AreaProvider { @Nonnull @Override public Box getSourceArea(@Nonnull RenderImage renderImage) { return new Box(0, 0, renderImage.getWidth(), renderImage.getHeight()); }  @Override void setParameters(@Nullable String parameters); @Nonnull @Override Box getSourceArea(@Nonnull RenderImage renderImage); @Nonnull @Override Size getNativeSize(@Nonnull NiftyImage image);  }