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