@@ -0,0 +1,1442 @@
+package nl.github.martijn9612.fishy.position;%0A%0Aimport static org.mockito.Mockito.mock;%0Aimport junit.framework.TestCase;%0A%0Aimport org.junit.Test;%0Aimport org.newdawn.slick.Graphics;%0Aimport org.newdawn.slick.Image;%0Aimport nl.github.martijn9612.fishy.position.DrawRectangle;%0A%0Apublic class DrawRectangleTest extends TestCase %7B%0A%0A    private int width;%0A    private int height;%0A    private int posX;%0A    private int posY;%0A    private DrawRectangle test;%0A    private Graphics g = mock(Graphics.class);%0A    private Image im = mock(Image.class);%0A    %0A    @Override%0A    protected void setUp() %7B%0A        width = 1;%0A        height = 1;%0A        posX = 0;%0A        posY = 0;%0A        test = new DrawRectangle(posX, posY, width, height);%0A    %7D%0A    %0A    @Test%0A    public void testGetHeight() %7B%0A        assertEquals(test.getHeight(), 1);%0A    %7D%0A    %0A    @Test%0A    public void testGetWidht() %7B%0A        assertEquals(test.getWidth(), 1);%0A    %7D%0A%0A    @Test%0A    public void testGetMouseRectangle() %7B%0A        MouseRectangle testrect = new MouseRectangle(posX, posY, width, height);%0A        testrect.flipYAxis();%0A        testrect.setPositionY(testrect.getPositionY() - height);%0A        assertEquals(test.getMouseRectangle().positionX, testrect.positionX);%0A    %7D%0A    %0A    @Test%0A    public void testToString() %7B%0A        String retstring = %22Draw rectangle X: %22+posX+%22, Y: %22+posY+%22, width: %22+width+%22, height: %22+height;%0A        assertEquals(retstring, test.toString());%0A    %7D%0A%7D%0A

test for DrawRectangle, 100% coverage <testing