@ Then ( "^a Mongo dataBase '(.+?)' doesnt contains a table '(.+?)'$" ) public void aMongoDataBaseContainsaTable ( String database , String tableName ) { commonspec . getMongoDBClient ( ) . connectToMongoDBDataBase ( database ) ; Set < String > collectionsNames = commonspec . getMongoDBClient ( ) . getMongoDBCollections ( ) ; assertThat ( collectionsNames ) . as ( "The Mongo dataBase contains the table" ) . doesNotContain ( tableName ) ; }
Checks if a MongoDB database contains a table .