Search in sources :

Example 1 with SearchSetupHelper

use of org.hibernate.search.integrationtest.backend.tck.testsupport.util.rule.SearchSetupHelper in project hibernate-search by hibernate.

the class AbstractSettingsPerShardIT method params.

@Parameterized.Parameters(name = "{0} - {2}")
public static Object[][] params() {
    Set<String> hashShardIds = CollectionHelper.asImmutableSet("0", "1", "2", "3");
    Set<String> explicitShardIds = CollectionHelper.asImmutableSet("first", "second", "other", "yetanother");
    return new Object[][] { { "hash", new SearchSetupHelper(helper -> helper.createHashBasedShardingBackendSetupStrategy(4)), new ArrayList<>(hashShardIds) }, { "explicit", new SearchSetupHelper(ignored -> ShardingExplicitIT.explicitShardingBackendSetupStrategy(explicitShardIds)), new ArrayList<>(explicitShardIds) } };
}
Also used : RuleChain(org.junit.rules.RuleChain) List(java.util.List) IndexedEntityBindingContext(org.hibernate.search.engine.mapper.mapping.building.spi.IndexedEntityBindingContext) Rule(org.junit.Rule) RunWith(org.junit.runner.RunWith) Set(java.util.Set) SimpleMappedIndex(org.hibernate.search.util.impl.integrationtest.mapper.stub.SimpleMappedIndex) SearchSetupHelper(org.hibernate.search.integrationtest.backend.tck.testsupport.util.rule.SearchSetupHelper) TemporaryFolder(org.junit.rules.TemporaryFolder) Parameterized(org.junit.runners.Parameterized) ArrayList(java.util.ArrayList) CollectionHelper(org.hibernate.search.util.common.impl.CollectionHelper) SearchSetupHelper(org.hibernate.search.integrationtest.backend.tck.testsupport.util.rule.SearchSetupHelper)

Aggregations

ArrayList (java.util.ArrayList)1 List (java.util.List)1 Set (java.util.Set)1 IndexedEntityBindingContext (org.hibernate.search.engine.mapper.mapping.building.spi.IndexedEntityBindingContext)1 SearchSetupHelper (org.hibernate.search.integrationtest.backend.tck.testsupport.util.rule.SearchSetupHelper)1 CollectionHelper (org.hibernate.search.util.common.impl.CollectionHelper)1 SimpleMappedIndex (org.hibernate.search.util.impl.integrationtest.mapper.stub.SimpleMappedIndex)1 Rule (org.junit.Rule)1 RuleChain (org.junit.rules.RuleChain)1 TemporaryFolder (org.junit.rules.TemporaryFolder)1 RunWith (org.junit.runner.RunWith)1 Parameterized (org.junit.runners.Parameterized)1