Class MetadataCollectionsTestUtils
java.lang.Object
fr.gouv.vitam.metadata.core.database.collections.MetadataCollectionsTestUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
afterTest
(ElasticsearchMetadataIndexManager indexManager) static void
afterTest
(ElasticsearchMetadataIndexManager indexManager, Collection<MetadataCollections> metadataCollections) static void
afterTestClass
(ElasticsearchMetadataIndexManager indexManager, boolean deleteEsIndexes) static void
afterTestClass
(ElasticsearchMetadataIndexManager indexManager, Collection<MetadataCollections> metadataCollections, boolean deleteEsIndexes) static void
beforeTestClass
(com.mongodb.client.MongoDatabase db, String prefix, ElasticsearchAccessMetadata esClient) static void
beforeTestClass
(com.mongodb.client.MongoDatabase db, String prefix, ElasticsearchAccessMetadata esClient, Collection<MetadataCollections> metadataCollections) createTestIndexManager
(List<Integer> dedicatedTenants, Map<String, List<Integer>> tenantGroups, MappingLoader mappingLoader, String elasticsearchConfigurationFilePath)
-
Method Details
-
createTestIndexManager
public static ElasticsearchMetadataIndexManager createTestIndexManager(List<Integer> dedicatedTenants, Map<String, List<Integer>> tenantGroups, MappingLoader mappingLoader, String elasticsearchConfigurationFilePath) -
beforeTestClass
public static void beforeTestClass(com.mongodb.client.MongoDatabase db, String prefix, ElasticsearchAccessMetadata esClient) -
beforeTestClass
public static void beforeTestClass(com.mongodb.client.MongoDatabase db, String prefix, ElasticsearchAccessMetadata esClient, Collection<MetadataCollections> metadataCollections) -
afterTestClass
public static void afterTestClass(ElasticsearchMetadataIndexManager indexManager, boolean deleteEsIndexes) -
afterTestClass
public static void afterTestClass(ElasticsearchMetadataIndexManager indexManager, Collection<MetadataCollections> metadataCollections, boolean deleteEsIndexes) -
afterTest
-
afterTest
public static void afterTest(ElasticsearchMetadataIndexManager indexManager, Collection<MetadataCollections> metadataCollections)
-