|
8 | 8 |
|
9 | 9 | import static org.assertj.core.api.Assertions.assertThatThrownBy;
|
10 | 10 | import static org.hibernate.search.util.impl.integrationtest.common.assertion.SearchResultAssert.assertThatQuery;
|
11 |
| -import static org.junit.Assume.assumeTrue; |
12 | 11 |
|
13 | 12 | import java.util.function.Consumer;
|
14 | 13 | import java.util.function.Function;
|
|
23 | 22 | import org.hibernate.search.engine.search.predicate.dsl.PredicateFinalStep;
|
24 | 23 | import org.hibernate.search.engine.search.predicate.dsl.SearchPredicateFactory;
|
25 | 24 | import org.hibernate.search.engine.search.query.SearchQuery;
|
26 |
| -import org.hibernate.search.integrationtest.backend.tck.testsupport.util.TckConfiguration; |
27 | 25 | import org.hibernate.search.integrationtest.backend.tck.testsupport.util.rule.SearchSetupHelper;
|
28 | 26 | import org.hibernate.search.util.impl.integrationtest.mapper.stub.SimpleMappedIndex;
|
29 | 27 | import org.hibernate.search.util.impl.integrationtest.mapper.stub.StubMappingSchemaManagementStrategy;
|
@@ -363,10 +361,8 @@ public void matchingPathGlob_precedence_deepestDeclared() {
|
363 | 361 | * The {@code exists} predicate should detect static object fields even if all their sub-fields are dynamic.
|
364 | 362 | */
|
365 | 363 | @Test
|
366 |
| - @TestForIssue(jiraKey = "HSEARCH-3273") |
| 364 | + @TestForIssue(jiraKey = { "HSEARCH-3273", "HSEARCH-3905" }) |
367 | 365 | public void exists_staticObjectField() {
|
368 |
| - assumeBackendSupportsDynamicChildFieldsInExistsPredicate(); |
369 |
| - |
370 | 366 | Consumer<IndexSchemaElement> rootTemplatesBinder = root -> { };
|
371 | 367 | Consumer<IndexSchemaElement> staticObjectTemplatesBinder = staticObject -> {
|
372 | 368 | staticObject.fieldTemplate( "fieldTemplate", f -> f.asString() )
|
@@ -428,10 +424,8 @@ public void exists_staticObjectField() {
|
428 | 424 | * The {@code exists} predicate should detect dynamic object fields even if all their sub-fields are dynamic.
|
429 | 425 | */
|
430 | 426 | @Test
|
431 |
| - @TestForIssue(jiraKey = "HSEARCH-3273") |
| 427 | + @TestForIssue(jiraKey = { "HSEARCH-3273", "HSEARCH-3905" }) |
432 | 428 | public void exists_dynamicObjectField() {
|
433 |
| - assumeBackendSupportsDynamicChildFieldsInExistsPredicate(); |
434 |
| - |
435 | 429 | Consumer<IndexSchemaElement> templatesBinder = root -> {
|
436 | 430 | root.fieldTemplate( "fieldTemplate", f -> f.asString() )
|
437 | 431 | .matchingPathGlob( VALUE_FIELD_PATH_GLOB );
|
@@ -487,13 +481,6 @@ public void exists_dynamicObjectField() {
|
487 | 481 | .hasDocRefHitsAnyOrder( index.typeName(), documentWhereObjectFieldExistsId );
|
488 | 482 | }
|
489 | 483 |
|
490 |
| - private void assumeBackendSupportsDynamicChildFieldsInExistsPredicate() { |
491 |
| - assumeTrue( |
492 |
| - "This backend doesn't take dynamic child fields into account when creating exists predicates on object fields.", |
493 |
| - TckConfiguration.get().getBackendFeatures().supportsDynamicChildFieldsInExistsPredicate() |
494 |
| - ); |
495 |
| - } |
496 |
| - |
497 | 484 | private SearchQuery<DocumentReference> query(
|
498 | 485 | Function<? super SearchPredicateFactory, ? extends PredicateFinalStep> predicateContributor) {
|
499 | 486 | return index.createScope().query()
|
|
0 commit comments