@Test(expected = IllegalArgumentException.class) public void testSetParametersThrowsIllegalArgumentExceptionWithNoParameters() { NinePartResizeStrategy strategy = new NinePartResizeStrategy(); strategy.setParameters(null); }
@Override public void setParameters(String parameters) { String[] args = getArguments(parameters); m_row0 = new NinePartResizeRow(args, 0); m_row1 = new NinePartResizeRow(args, 4); m_row2 = new NinePartResizeRow(args, 8); }
NinePartResizeStrategy implements RenderStrategy { @Override public void setParameters(String parameters) { String[] args = getArguments(parameters); m_row0 = new NinePartResizeRow(args, 0); m_row1 = new NinePartResizeRow(args, 4); m_row2 = new NinePartResizeRow(args, 8); } }
NinePartResizeStrategy implements RenderStrategy { @Override public void setParameters(String parameters) { String[] args = getArguments(parameters); m_row0 = new NinePartResizeRow(args, 0); m_row1 = new NinePartResizeRow(args, 4); m_row2 = new NinePartResizeRow(args, 8); }  }
NinePartResizeStrategy implements RenderStrategy { @Override public void setParameters(String parameters) { String[] args = getArguments(parameters); m_row0 = new NinePartResizeRow(args, 0); m_row1 = new NinePartResizeRow(args, 4); m_row2 = new NinePartResizeRow(args, 8); }  @Override void setParameters(String parameters); @Override void render(
      @Nonnull RenderDevice device,
      @Nonnull RenderImage image,
      @Nonnull Box sourceArea,
      int x,
      int y,
      int width,
      int height,
      @Nonnull Color color,
      float scale); }
NinePartResizeStrategy implements RenderStrategy { @Override public void setParameters(String parameters) { String[] args = getArguments(parameters); m_row0 = new NinePartResizeRow(args, 0); m_row1 = new NinePartResizeRow(args, 4); m_row2 = new NinePartResizeRow(args, 8); }  @Override void setParameters(String parameters); @Override void render(
      @Nonnull RenderDevice device,
      @Nonnull RenderImage image,
      @Nonnull Box sourceArea,
      int x,
      int y,
      int width,
      int height,
      @Nonnull Color color,
      float scale);  }