@Test public void testGetNativeSizeReturnsImageSize() { NiftyImage image = createMock(NiftyImage.class); expect(image.getWidth()).andReturn(1); expect(image.getHeight()).andReturn(2); replay(image); FullImageAreaProvider areaProvider = new FullImageAreaProvider(); 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()); }
FullImageAreaProvider implements AreaProvider { @Nonnull @Override public Size getNativeSize(@Nonnull NiftyImage image) { return new Size(image.getWidth(), image.getHeight()); } }
FullImageAreaProvider implements AreaProvider { @Nonnull @Override public Size getNativeSize(@Nonnull NiftyImage image) { return new Size(image.getWidth(), image.getHeight()); }  }
FullImageAreaProvider implements AreaProvider { @Nonnull @Override public Size getNativeSize(@Nonnull NiftyImage image) { return new Size(image.getWidth(), image.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 Size getNativeSize(@Nonnull NiftyImage image) { return new Size(image.getWidth(), image.getHeight()); }  @Override void setParameters(@Nullable String parameters); @Nonnull @Override Box getSourceArea(@Nonnull RenderImage renderImage); @Nonnull @Override Size getNativeSize(@Nonnull NiftyImage image);  }