@Test public void increaseDimension() { Dimension dimension = new Dimension(5, 9); int amountToIncrease = 2; Dimension increasedDimension = Geometry.increase(amountToIncrease, dimension); assertEquals(dimension.width + amountToIncrease, increasedDimension.width); assertEquals(dimension.height + amountToIncrease, increasedDimension.height); }
public static Dimension increase(int amount, Dimension dimension) { return new Dimension(dimension.width + amount, dimension.height + amount); }
Geometry { public static Dimension increase(int amount, Dimension dimension) { return new Dimension(dimension.width + amount, dimension.height + amount); } }
Geometry { public static Dimension increase(int amount, Dimension dimension) { return new Dimension(dimension.width + amount, dimension.height + amount); }  }
Geometry { public static Dimension increase(int amount, Dimension dimension) { return new Dimension(dimension.width + amount, dimension.height + amount); }  static Dimension increase(int amount, Dimension dimension); static Point offset(int amount, Point point); static Point offset(Point offset, Point point); static Point opposite(Point point); }
Geometry { public static Dimension increase(int amount, Dimension dimension) { return new Dimension(dimension.width + amount, dimension.height + amount); }  static Dimension increase(int amount, Dimension dimension); static Point offset(int amount, Point point); static Point offset(Point offset, Point point); static Point opposite(Point point);  }