Class MetadataCollectionsTestUtils
- java.lang.Object
-
- fr.gouv.vitam.metadata.core.database.collections.MetadataCollectionsTestUtils
-
public final class MetadataCollectionsTestUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
afterTest(ElasticsearchMetadataIndexManager indexManager)
static void
afterTest(ElasticsearchMetadataIndexManager indexManager, java.util.Collection<MetadataCollections> metadataCollections)
static void
afterTestClass(ElasticsearchMetadataIndexManager indexManager, boolean deleteEsIndexes)
static void
afterTestClass(ElasticsearchMetadataIndexManager indexManager, java.util.Collection<MetadataCollections> metadataCollections, boolean deleteEsIndexes)
static void
beforeTestClass(com.mongodb.client.MongoDatabase db, java.lang.String prefix, ElasticsearchAccessMetadata esClient)
static void
beforeTestClass(com.mongodb.client.MongoDatabase db, java.lang.String prefix, ElasticsearchAccessMetadata esClient, java.util.Collection<MetadataCollections> metadataCollections)
static ElasticsearchMetadataIndexManager
createTestIndexManager(java.util.List<java.lang.Integer> dedicatedTenants, java.util.Map<java.lang.String,java.util.List<java.lang.Integer>> tenantGroups, MappingLoader mappingLoader)
-
-
-
Method Detail
-
createTestIndexManager
public static ElasticsearchMetadataIndexManager createTestIndexManager(java.util.List<java.lang.Integer> dedicatedTenants, java.util.Map<java.lang.String,java.util.List<java.lang.Integer>> tenantGroups, MappingLoader mappingLoader)
-
beforeTestClass
public static void beforeTestClass(com.mongodb.client.MongoDatabase db, java.lang.String prefix, ElasticsearchAccessMetadata esClient)
-
beforeTestClass
public static void beforeTestClass(com.mongodb.client.MongoDatabase db, java.lang.String prefix, ElasticsearchAccessMetadata esClient, java.util.Collection<MetadataCollections> metadataCollections)
-
afterTestClass
public static void afterTestClass(ElasticsearchMetadataIndexManager indexManager, boolean deleteEsIndexes)
-
afterTestClass
public static void afterTestClass(ElasticsearchMetadataIndexManager indexManager, java.util.Collection<MetadataCollections> metadataCollections, boolean deleteEsIndexes)
-
afterTest
public static void afterTest(ElasticsearchMetadataIndexManager indexManager)
-
afterTest
public static void afterTest(ElasticsearchMetadataIndexManager indexManager, java.util.Collection<MetadataCollections> metadataCollections)
-
-