Skip to content

Commit

Permalink
HSEARCH-4925 Fix inverted assumption in tests relying on index closin…
Browse files Browse the repository at this point in the history
…g/opening
  • Loading branch information
yrodiere committed Aug 28, 2023
1 parent 633cda2 commit 66733ad
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
package org.hibernate.search.integrationtest.backend.elasticsearch.schema.management;

import static org.hibernate.search.util.impl.test.JsonHelper.assertJsonEquals;
import static org.junit.Assume.assumeFalse;
import static org.junit.Assume.assumeTrue;

import org.hibernate.search.backend.elasticsearch.cfg.ElasticsearchIndexSettings;
import org.hibernate.search.engine.backend.work.execution.OperationSubmitter;
Expand Down Expand Up @@ -39,7 +39,7 @@ public class ElasticsearchIndexSchemaManagerUpdateAnalyzerIT {

@Before
public void checkAssumption() {
assumeFalse(
assumeTrue(
"This test only is only relevant if we are allowed to open/close Elasticsearch indexes.",
ElasticsearchTckBackendFeatures.supportsIndexClosingAndOpening()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import static org.assertj.core.api.Assertions.assertThatThrownBy;
import static org.hibernate.search.util.impl.test.JsonHelper.assertJsonEquals;
import static org.junit.Assume.assumeFalse;
import static org.junit.Assume.assumeTrue;

import org.hibernate.search.backend.elasticsearch.cfg.ElasticsearchIndexSettings;
import org.hibernate.search.engine.backend.work.execution.OperationSubmitter;
Expand Down Expand Up @@ -41,7 +41,7 @@ public class ElasticsearchIndexSchemaManagerUpdateCustomMappingIT {

@Before
public void checkAssumption() {
assumeFalse(
assumeTrue(
"This test only is only relevant if we are allowed to open/close Elasticsearch indexes.",
ElasticsearchTckBackendFeatures.supportsIndexClosingAndOpening()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import static org.hibernate.search.util.impl.test.JsonHelper.assertJsonEquals;
import static org.junit.Assume.assumeFalse;
import static org.junit.Assume.assumeTrue;

import org.hibernate.search.backend.elasticsearch.analysis.ElasticsearchAnalysisConfigurationContext;
import org.hibernate.search.backend.elasticsearch.analysis.ElasticsearchAnalysisConfigurer;
Expand Down Expand Up @@ -44,7 +44,7 @@ public class ElasticsearchIndexSchemaManagerUpdateCustomSettingsIT {

@Before
public void checkAssumption() {
assumeFalse(
assumeTrue(
"This test only is only relevant if we are allowed to open/close Elasticsearch indexes.",
ElasticsearchTckBackendFeatures.supportsIndexClosingAndOpening()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
package org.hibernate.search.integrationtest.backend.elasticsearch.schema.management;

import static org.hibernate.search.util.impl.test.JsonHelper.assertJsonEquals;
import static org.junit.Assume.assumeFalse;
import static org.junit.Assume.assumeTrue;

import org.hibernate.search.backend.elasticsearch.cfg.ElasticsearchIndexSettings;
import org.hibernate.search.engine.backend.work.execution.OperationSubmitter;
Expand Down Expand Up @@ -39,7 +39,7 @@ public class ElasticsearchIndexSchemaManagerUpdateNormalizerIT {

@Before
public void checkAssumption() {
assumeFalse(
assumeTrue(
"This test only is only relevant if we are allowed to open/close Elasticsearch indexes.",
ElasticsearchTckBackendFeatures.supportsIndexClosingAndOpening()
);
Expand Down

0 comments on commit 66733ad

Please sign in to comment.