public static void clearallLocalDBs ( ) { for ( final Map . Entry < MongoClient , Boolean > entry : localInstances . entrySet ( ) ) { for ( final String dbName : entry . getKey ( ) . listDatabaseNames ( ) ) { entry . getKey ( ) . getDatabase ( dbName ) . drop ( ) ; } } }
Helper function that drops all local databases for every client .