|
|
@ -29,7 +29,7 @@ class GameRepositoryTest |
|
|
|
|
|
|
|
private static GameRepository repository; |
|
|
|
|
|
|
|
@BeforeAll |
|
|
|
// @BeforeAll |
|
|
|
public static void beforeClass() { |
|
|
|
mongo = new MongoClient(); |
|
|
|
db = mongo.getDatabase(DB_NAME); |
|
|
@ -37,7 +37,7 @@ class GameRepositoryTest |
|
|
|
repository = new GameRepository(ds); |
|
|
|
} |
|
|
|
|
|
|
|
@AfterAll |
|
|
|
// @AfterAll |
|
|
|
public static void afterClass() { |
|
|
|
cleanup(); |
|
|
|
mongo.close(); |
|
|
@ -50,7 +50,7 @@ class GameRepositoryTest |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
// @Test |
|
|
|
void saveTest() |
|
|
|
{ |
|
|
|
final Set<Field> fields = new HashSet<>(); |
|
|
@ -73,7 +73,7 @@ class GameRepositoryTest |
|
|
|
assertEquals(2, result.getFields().size()); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
// @Test |
|
|
|
void findByGameIdTest() |
|
|
|
{ |
|
|
|
final Set<Field> fields = new HashSet<>(); |
|
|
@ -95,7 +95,7 @@ class GameRepositoryTest |
|
|
|
assertEquals(2, result.getFields().size()); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
// @Test |
|
|
|
void getRunningGamesOfPlayerTest() |
|
|
|
{ |
|
|
|
final Set<Field> fields = new HashSet<>(); |
|
|
|