@Test(expected = IllegalArgumentException.class) public void testSetParametersThrowsIllegalArgumentExceptionWithParameters() { FullImageAreaProvider areaProvider = new FullImageAreaProvider(); areaProvider.setParameters(""); }
@Override public void setParameters(@Nullable String parameters) { if (parameters != null) { throw new IllegalArgumentException("Trying to parse [" + this.getClass().getName() + "] : expected no parameters, found [" + parameters + "]."); } }
FullImageAreaProvider implements AreaProvider { @Override public void setParameters(@Nullable String parameters) { if (parameters != null) { throw new IllegalArgumentException("Trying to parse [" + this.getClass().getName() + "] : expected no parameters, found [" + parameters + "]."); } } }
FullImageAreaProvider implements AreaProvider { @Override public void setParameters(@Nullable String parameters) { if (parameters != null) { throw new IllegalArgumentException("Trying to parse [" + this.getClass().getName() + "] : expected no parameters, found [" + parameters + "]."); } }  }
FullImageAreaProvider implements AreaProvider { @Override public void setParameters(@Nullable String parameters) { if (parameters != null) { throw new IllegalArgumentException("Trying to parse [" + this.getClass().getName() + "] : expected no parameters, found [" + parameters + "]."); } }  @Override void setParameters(@Nullable String parameters); @Nonnull @Override Box getSourceArea(@Nonnull RenderImage renderImage); @Nonnull @Override Size getNativeSize(@Nonnull NiftyImage image); }
FullImageAreaProvider implements AreaProvider { @Override public void setParameters(@Nullable String parameters) { if (parameters != null) { throw new IllegalArgumentException("Trying to parse [" + this.getClass().getName() + "] : expected no parameters, found [" + parameters + "]."); } }  @Override void setParameters(@Nullable String parameters); @Nonnull @Override Box getSourceArea(@Nonnull RenderImage renderImage); @Nonnull @Override Size getNativeSize(@Nonnull NiftyImage image);  }