@@ -0,0 +1,703 @@
+package nl.github.martijn9612.fishy;%0A%0Aimport static org.junit.Assert.*;%0Aimport static org.mockito.Mockito.mock;%0A%0Aimport org.junit.Test;%0Aimport org.newdawn.slick.GameContainer;%0A%0Apublic class SinusOpponentTest %7B%0A    private final GameContainer gc = mock(GameContainer.class);%0A    %0A    @Test%0A    public void testObjectLogic() %7B%0A        Opponent opp = new SinusOpponent(1, 1);%0A        opp.setPosition(0, 0);%0A        opp.objectLogic(gc, 0);%0A        assertEquals(opp.speed, 1);%0A    %7D%0A    %0A    @Test%0A    public void testObjectLogic2() %7B%0A        Opponent opp = new SinusOpponent(1, 1);%0A        opp.setPosition(1, 1);%0A        opp.objectLogic(gc, 0);%0A        assertEquals(opp.speed, ((1 %25 80) / 20 + 1));%0A    %7D%0A%7D%0A

Test file for SinusOpponent.java <testing