Commit 4f39841c authored by Aneta Steimarova's avatar Aneta Steimarova

#929 Fixed problem with List definitions as null

parent a003b8c8
TestGameCrimeSceneEasyNoneStar
TestGameCrimeSceneEasyOneStar
TestGameCrimeSceneEasyTwoStar
TestGameCrimeSceneEasyThreeStar
TestGameCrimeSceneMediumNoneStar
TestGameCrimeSceneMediumOneStar
TestGameCrimeSceneMediumTwoStar
TestGameCrimeSceneMediumThreeStar
TestGameCrimeSceneHardNoneStar
TestGameCrimeSceneHardOneStar
TestGameCrimeSceneHardTwoStar
TestGameCrimeSceneHardThreeStar
\ No newline at end of file
TestStatisticsButtons
\ No newline at end of file
......@@ -63,7 +63,6 @@ public abstract class AbstractTestStatistics extends AbstractTestScenario {
private final int firstFingerPointer = 0;
private final float duration = 1f;
private List<GameDefinition> definitions;
public AbstractTestStatistics(Tablexia tablexia) {
super(tablexia);
......@@ -76,8 +75,6 @@ public abstract class AbstractTestStatistics extends AbstractTestScenario {
//set data to databases
setGameData(user, gameDefinition);
definitions = GameDefinition.getSortedGameDefinitionList();
//open statistics
waitForEvent("1. Wait for event opened ready", AbstractMenu.SCENARIO_STEP_READY_MENU);
......@@ -478,7 +475,7 @@ public abstract class AbstractTestStatistics extends AbstractTestScenario {
step++;
}
testCheckedButton(step, definitions.get(gameIndex).toString());
testCheckedButton(step, GameDefinition.getSortedGameDefinitionList().get(gameIndex).toString());
gameChecked = gameIndex;
......@@ -494,7 +491,7 @@ public abstract class AbstractTestStatistics extends AbstractTestScenario {
}
private void testCheckedButton(int step, String actorName) {
logInfo(step + ". Control game button: " + actorName + "is checked.");
logInfo(step + ". Control game button: " + actorName + " is checked.");
TablexiaButton button = (TablexiaButton) findActorByName(actorName);
if (button != null) {
......
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