List of usage examples for com.mongodb DBCollection count
public long count()
From source file:uk.ac.ebi.eva.test.utils.DropStudyJobTestUtils.java
License:Apache License
public static void assertDropFiles(DBCollection filesCollection, String studyId, long expectedFilesAfterDropStudy) { assertEquals(expectedFilesAfterDropStudy, filesCollection.count()); BasicDBObject remainingFilesThatShouldHaveBeenDropped = new BasicDBObject(STUDYID_FIELD, studyId); assertEquals(0, filesCollection.count(remainingFilesThatShouldHaveBeenDropped)); }