33
33
import org .hibernate .search .integrationtest .backend .tck .testsupport .types .FieldTypeDescriptor ;
34
34
import org .hibernate .search .integrationtest .backend .tck .testsupport .types .StandardFieldTypeDescriptor ;
35
35
import org .hibernate .search .integrationtest .backend .tck .testsupport .util .SimpleFieldModelsByType ;
36
- import org .hibernate .search .integrationtest .backend .tck .testsupport .util .TckConfiguration ;
37
36
import org .hibernate .search .integrationtest .backend .tck .testsupport .util .ValueWrapper ;
38
37
import org .hibernate .search .integrationtest .backend .tck .testsupport .util .extension .SearchSetupHelper ;
39
38
import org .hibernate .search .util .impl .integrationtest .mapper .stub .BulkIndexer ;
@@ -230,8 +229,6 @@ void orderByCountDescending(FieldTypeDescriptor<F, ?> fieldType, DataSet<F> data
230
229
@ MethodSource ("params" )
231
230
@ PortedFromSearch5 (original = "org.hibernate.search.test.query.facet.SimpleFacetingTest.testCountSortOrderAsc" )
232
231
void orderByCountAscending (FieldTypeDescriptor <F , ?> fieldType , DataSet <F > dataSet ) {
233
- assumeNonDefaultOrdersSupported ();
234
-
235
232
String fieldPath = index .binding ().fieldModels .get ( fieldType ).relativeFieldName ;
236
233
237
234
AggregationKey <Map <F , Long >> aggregationKey = AggregationKey .of ( AGGREGATION_NAME );
@@ -258,8 +255,6 @@ void orderByCountAscending(FieldTypeDescriptor<F, ?> fieldType, DataSet<F> dataS
258
255
@ ParameterizedTest (name = "{0}" )
259
256
@ MethodSource ("params" )
260
257
void orderByTermDescending (FieldTypeDescriptor <F , ?> fieldType , DataSet <F > dataSet ) {
261
- assumeNonDefaultOrdersSupported ();
262
-
263
258
String fieldPath = index .binding ().fieldModels .get ( fieldType ).relativeFieldName ;
264
259
265
260
AggregationKey <Map <F , Long >> aggregationKey = AggregationKey .of ( AGGREGATION_NAME );
@@ -287,8 +282,6 @@ void orderByTermDescending(FieldTypeDescriptor<F, ?> fieldType, DataSet<F> dataS
287
282
@ MethodSource ("params" )
288
283
@ PortedFromSearch5 (original = "org.hibernate.search.test.query.facet.SimpleFacetingTest.testAlphabeticalSortOrder" )
289
284
void orderByTermAscending (FieldTypeDescriptor <F , ?> fieldType , DataSet <F > dataSet ) {
290
- assumeNonDefaultOrdersSupported ();
291
-
292
285
String fieldPath = index .binding ().fieldModels .get ( fieldType ).relativeFieldName ;
293
286
294
287
AggregationKey <Map <F , Long >> aggregationKey = AggregationKey .of ( AGGREGATION_NAME );
@@ -412,8 +405,6 @@ void minDocumentCount_zero_noMatch(FieldTypeDescriptor<F, ?> fieldType, DataSet<
412
405
@ ParameterizedTest (name = "{0}" )
413
406
@ MethodSource ("params" )
414
407
void minDocumentCount_zero_noMatch_orderByTermDescending (FieldTypeDescriptor <F , ?> fieldType , DataSet <F > dataSet ) {
415
- assumeNonDefaultOrdersSupported ();
416
-
417
408
String fieldPath = index .binding ().fieldModels .get ( fieldType ).relativeFieldName ;
418
409
419
410
AggregationKey <Map <F , Long >> aggregationKey = AggregationKey .of ( AGGREGATION_NAME );
@@ -491,8 +482,6 @@ void maxTermCount_positive(FieldTypeDescriptor<F, ?> fieldType, DataSet<F> dataS
491
482
@ ParameterizedTest (name = "{0}" )
492
483
@ MethodSource ("params" )
493
484
void maxTermCount_positive_orderByTermAscending (FieldTypeDescriptor <F , ?> fieldType , DataSet <F > dataSet ) {
494
- assumeNonDefaultOrdersSupported ();
495
-
496
485
String fieldPath = index .binding ().fieldModels .get ( fieldType ).relativeFieldName ;
497
486
498
487
AggregationKey <Map <F , Long >> aggregationKey = AggregationKey .of ( AGGREGATION_NAME );
@@ -521,8 +510,6 @@ void maxTermCount_positive_orderByTermAscending(FieldTypeDescriptor<F, ?> fieldT
521
510
@ ParameterizedTest (name = "{0}" )
522
511
@ MethodSource ("params" )
523
512
void maxTermCount_positive_orderByCountAscending (FieldTypeDescriptor <F , ?> fieldType , DataSet <F > dataSet ) {
524
- assumeNonDefaultOrdersSupported ();
525
-
526
513
String fieldPath = index .binding ().fieldModels .get ( fieldType ).relativeFieldName ;
527
514
528
515
AggregationKey <Map <F , Long >> aggregationKey = AggregationKey .of ( AGGREGATION_NAME );
@@ -710,13 +697,6 @@ void terms_max(FieldTypeDescriptor<F, ?> fieldType, DataSet<F> dataSet) {
710
697
return index .createScope ().query ().where ( f -> f .matchAll () );
711
698
}
712
699
713
- private void assumeNonDefaultOrdersSupported () {
714
- assumeTrue (
715
- TckConfiguration .get ().getBackendFeatures ().nonDefaultOrderInTermsAggregations (),
716
- "Non-default orders are not supported for terms aggregations with this backend"
717
- );
718
- }
719
-
720
700
@ SuppressWarnings ("unchecked" )
721
701
private <K , V > Consumer <Map <F , V >> containsExactly (Consumer <BiConsumer <F , V >> expectationBuilder ,
722
702
FieldTypeDescriptor <F , ?> fieldType ) {
0 commit comments