mirror of
https://github.com/magefree/mage.git
synced 2026-01-23 03:39:54 -08:00
Tests: fixed error on missing db files;
This commit is contained in:
parent
0df97e5d4b
commit
9a4fb4adb1
2 changed files with 9 additions and 3 deletions
|
|
@ -10,6 +10,7 @@ import mage.cards.decks.DeckCardInfo;
|
|||
import mage.cards.decks.DeckCardLists;
|
||||
import mage.cards.repository.CardInfo;
|
||||
import mage.cards.repository.CardRepository;
|
||||
import mage.cards.repository.CardScanner;
|
||||
import mage.constants.*;
|
||||
import mage.game.match.MatchOptions;
|
||||
import mage.player.ai.ComputerPlayer;
|
||||
|
|
@ -21,9 +22,7 @@ import mage.remote.SessionImpl;
|
|||
import mage.util.RandomUtil;
|
||||
import mage.view.*;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.*;
|
||||
|
||||
/**
|
||||
* Intended to test Mage server under different load patterns.
|
||||
|
|
@ -45,6 +44,12 @@ public class LoadTest {
|
|||
private static final String TEST_PROXY_TYPE = "None";
|
||||
private static final String TEST_USER_NAME = "user";
|
||||
|
||||
@BeforeClass
|
||||
public static void initDatabase() {
|
||||
// recreate missing cards db
|
||||
CardScanner.scan();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_CreateRandomDeck() {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue