@@ -0,0 +1,1125 @@
+package nl.github.martijn9612.fishy;%0A%0Aimport java.awt.Dimension;%0Aimport java.awt.Rectangle;%0A%0Aimport org.junit.Test;%0A%0Aimport junit.framework.Assert;%0A%0Apublic class TestObject %7B%0A%09%0A%09public static final int X_VALUE = 10;%0A%09public static final int Y_VALUE = 100;%0A%09public static final int WIDTH = 19;%0A%09public static final int HEIGHT = 76;%0A%09%0A%09%0A%09@Test%0A%09public void testSetPosition() %7B%0A%09%09Object obj = new Object();%0A%09%09obj.setPosition(X_VALUE, Y_VALUE);%0A%09%09Assert.assertEquals(X_VALUE, obj.getX());%0A%09%09Assert.assertEquals(Y_VALUE, obj.getY());%0A%09%7D%0A%09%0A%09@Test%0A%09public void testSetDimensions() %7B%0A%09%09Object obj = new Object();%0A%09%09obj.setDimensions(WIDTH, HEIGHT);%0A%09%09Assert.assertEquals(WIDTH, obj.getWidth());%0A%09%09Assert.assertEquals(HEIGHT, obj.getHeight());%0A%09%7D%0A%09%0A%09@Test%0A%09public void testCreateRectangle() %7B%0A%09%09Object obj = new Object();%0A%09%09obj.setPosition(X_VALUE, Y_VALUE);%0A%09%09obj.setDimensions(WIDTH, HEIGHT);%0A%09%09obj.createRectangle();%0A%09%09Assert.assertTrue(obj.objectRect instanceof Rectangle);%0A%09%09Dimension dim = obj.objectRect.getSize();%0A%09%09Assert.assertEquals((int) dim.getWidth(), WIDTH);%0A%09%09Assert.assertEquals((int) dim.getHeight(), HEIGHT);%0A%09%7D%0A%0A%7D%0A

Add test case for the Object class