Commit 155cd852 authored by Matyáš Latner's avatar Matyáš Latner

Fixed AverageScoreTest

parent 3d5fb9d9
......@@ -3,21 +3,21 @@ package cz.nic.tablexia.test.games;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import cz.nic.tablexia.TablexiaSettings;
import cz.nic.tablexia.game.GameDefinition;
import cz.nic.tablexia.game.common.TablexiaRandom;
import cz.nic.tablexia.game.difficulty.GameDifficulty;
import cz.nic.tablexia.game.games.robbery.RobberyGame;
import cz.nic.tablexia.screen.statistics.StatisticsGameScoreResolver;
import cz.nic.tablexia.shared.model.Game;
import cz.nic.tablexia.shared.model.GameScore;
import cz.nic.tablexia.shared.model.User;
import cz.nic.tablexia.shared.model.Game;
import cz.nic.tablexia.screen.statistics.StatisticsGameScoreResolver;
/**
......@@ -37,7 +37,21 @@ public class AverageScoreTest {
List<GameScore> scores = new CopyOnWriteArrayList<GameScore>();
scores.add(new GameScore(key, (i * 10) + ""));
TablexiaRandom random = new TablexiaRandom();
Game game = new Game((long)i, user, GameDifficulty.EASY.getDifficultyNumber(), GameDefinition.ROBBERY.getGameNumber(), random.getSeed(), 0l, 1l);
Game game = new Game((long)i,
user,
GameDifficulty.EASY.getDifficultyNumber(),
GameDefinition.ROBBERY.getGameNumber(),
random.getSeed(),
0l,
1l,
TablexiaSettings.LocaleDefinition.cs_CZ.getLocaleNumber(),
"Tablexia AverageScoreTest",
1,
"Tablexia AverageScoreTest",
1,
TablexiaSettings.BuildType.DEBUG.getId(),
TablexiaSettings.Platform.DESKTOP.getId(),
"Serial");
game.setGameScoreMap(scores);
games.add(game);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment