Browse Source

Mongo Tests not working on Jenkins

feat-serverGameRepresentation
Steffen Nitschke 4 years ago
parent
commit
378273f19d
  1. 10
      fh.fd.ci.server/src/test/java/de/fd/fh/server/game/GameRepositoryTest.java

10
fh.fd.ci.server/src/test/java/de/fd/fh/server/game/GameRepositoryTest.java

@ -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<>();

Loading…
Cancel
Save