package hu.unideb.inf.Dao;

/**
 * Created by MJ on 2017. 05. 31..
 */
public class HighScoreTest {
}

@@ -25,78 +25,1210 @@
 o;%0A%0A
-/**%0A * Created by MJ on 2017. 05. 31..%0A */%0Apublic class HighScoreTest %7B
+import org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport java.time.LocalDate;%0A%0Aimport static org.junit.Assert.*;%0A%0Apublic class HighScoreTest %7B%0A    private HighScore highScore;%0A    private String date = String.valueOf(LocalDate.now());%0A%0A%0A    @Before%0A    public void setHighScore()%7B%0A        highScore = new HighScore(%22Player%22,%2210%22, date);%0A    %7D%0A%0A    @Test%0A    public void testHighscore()%7B%0A        assertNotNull(highScore);%0A    %7D%0A%0A    @Test%0A    public void getNameTest()%7B%0A        assertEquals(%22Player%22,highScore.getName());%0A    %7D%0A%0A    @Test%0A    public void getScoreTest()%7B%0A        assertEquals(%2210%22,highScore.getScore());%0A    %7D%0A%0A    @Test%0A    public void getDateTest()%7B%0A        assertEquals(date,highScore.getDate());%0A    %7D%0A%0A    @Test%0A    public void setNameTest()%7B%0A        highScore.setName(%22Player%22);%0A        assertEquals(%22Player%22, highScore.getName());%0A    %7D%0A%0A    @Test%0A    public void setScoreTest()%7B%0A        highScore.setScore(%2220%22);%0A        assertEquals(%2220%22, highScore.getScore());%0A    %7D%0A%0A    @Test%0A    public void setDateTest()%7B%0A        LocalDate date = LocalDate.of(2013,01,01);%0A        highScore.setDate(String.valueOf(date));%0A        assertEquals(String.valueOf(date), highScore.getDate());%0A    %7D
 %0A%7D%0A

Add HighscoreTest