March 2018
Intermediate to advanced
324 pages
8h 30m
English
In the previous implementation, we used bla as the name of the collection because Jongo forced us to put some string. Let's create a specification that will define the name of the Mongo collection that we'll use:
@Test
public void whenInstantiatedThenMongoCollectionHasNameGame() {
TicTacToeCollection collection = new TicTacToeCollection();
assertEquals(
"game",
collection.getMongoCollection().getName());
}
This specification is almost identical to the previous one and probably self explanatory.
Read now
Unlock full access