@Test public void deleteUnitsAndProgeny_EmptyOK() throws Exception { repository.deleteReportByIdAndTenant("procId1", VitamThreadUtils.getVitamSession().getTenantId()); assertThat(mongoCollection.countDocuments()).isEqualTo(0); }
public void deleteReportByIdAndTenant(String processId, int tenantId) { super.deleteReportByIdAndTenant(processId, tenantId, collection); }
UnitComputedInheritedRulesInvalidationRepository extends ReportCommonRepository { public void deleteReportByIdAndTenant(String processId, int tenantId) { super.deleteReportByIdAndTenant(processId, tenantId, collection); } }
UnitComputedInheritedRulesInvalidationRepository extends ReportCommonRepository { public void deleteReportByIdAndTenant(String processId, int tenantId) { super.deleteReportByIdAndTenant(processId, tenantId, collection); } @VisibleForTesting  UnitComputedInheritedRulesInvalidationRepository(MongoDbAccess mongoDbAccess, String collectionName);  UnitComputedInheritedRulesInvalidationRepository(SimpleMongoDBAccess mongoDbAccess); }
UnitComputedInheritedRulesInvalidationRepository extends ReportCommonRepository { public void deleteReportByIdAndTenant(String processId, int tenantId) { super.deleteReportByIdAndTenant(processId, tenantId, collection); } @VisibleForTesting  UnitComputedInheritedRulesInvalidationRepository(MongoDbAccess mongoDbAccess, String collectionName);  UnitComputedInheritedRulesInvalidationRepository(SimpleMongoDBAccess mongoDbAccess); void bulkAppendReport(List<UnitComputedInheritedRulesInvalidationModel> reports); CloseableIterator<Document> findCollectionByProcessIdTenant(String processId, int tenantId); void deleteReportByIdAndTenant(String processId, int tenantId); }
UnitComputedInheritedRulesInvalidationRepository extends ReportCommonRepository { public void deleteReportByIdAndTenant(String processId, int tenantId) { super.deleteReportByIdAndTenant(processId, tenantId, collection); } @VisibleForTesting  UnitComputedInheritedRulesInvalidationRepository(MongoDbAccess mongoDbAccess, String collectionName);  UnitComputedInheritedRulesInvalidationRepository(SimpleMongoDBAccess mongoDbAccess); void bulkAppendReport(List<UnitComputedInheritedRulesInvalidationModel> reports); CloseableIterator<Document> findCollectionByProcessIdTenant(String processId, int tenantId); void deleteReportByIdAndTenant(String processId, int tenantId);  }