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) } };
}
Aggregations