@@ -0,0 +1,1930 @@
+package nl.github.martijn9612.fishy;%0A%0Aimport junit.framework.TestCase;%0Aimport nl.github.martijn9612.fishy.models.Score;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0A/**%0A * Testclass for ScoreController.%0A * @author Danique Lummen%0A */%0Apublic class ScoreControllerTest extends TestCase %7B%0A%0A    private ScoreController test;%0A    %0A    /**%0A     * Setup for the test class.%0A     */%0A    @Before%0A    protected void setUp() %7B%0A        test = ScoreController.getInstance();%0A    %7D%0A    %0A    /**%0A     * Test method for getInstance method.%0A     */%0A    @Test%0A    public void testGetInstance() %7B%0A        assertEquals(test, ScoreController.getInstance());%0A    %7D%0A    %0A    /**%0A     * Test method for StorePlayerScore method.%0A     */%0A    @Test%0A    public void testStorePlayerScore() %7B%0A        test.storePlayerScore(100.0);%0A        assertEquals(test.getPlayerScore(), 100.0);%0A    %7D%0A%0A    /**%0A     * Test method for addScore method.%0A     */%0A    @Test%0A    public void testAddScore() %7B%0A        Score score = new Score(%22Highscore%22, 1000.0);%0A        test.addScore(score);%0A        assertTrue(test.getScoreList().contains(score));%0A    %7D%0A    %0A    /**%0A     * Test method for removeScore method.%0A     */%0A    @Test%0A    public void testRemoveScore1() %7B%0A        Score score = new Score(%22Highscore%22, 1000.0);%0A        test.addScore(score);%0A        test.removeScore(score);%0A        assertFalse(test.getScoreList().contains(score));%0A    %7D%0A    %0A    /**%0A     * Test method for removeScore method.%0A     */%0A    @Test%0A    public void testRemoveScore2() %7B%0A        Score score = new Score(%22Highscore%22, 1000.0);%0A        test.removeScore(score);%0A        assertFalse(test.getScoreList().contains(score));%0A    %7D%0A    %0A    /**%0A     * Test method for savedStoredScore method.%0A     */%0A    @Test%0A    public void testSavedStoredScore() %7B%0A        test.storePlayerScore(200.0);%0A        test.savedStoredScore(%22player%22);%0A        assertEquals(test.getPlayerScore(), 0.0);%0A        %0A    %7D%0A%7D%0A

Test class for the ScoreController class <testing