Annotation Interface DataOpenSearchTest
@Target(TYPE)
@Retention(RUNTIME)
@Documented
@Inherited
@BootstrapWith(org.opensearch.spring.boot.autoconfigure.test.DataOpenSearchTestContextBootstrapper.class)
@ExtendWith(org.springframework.test.context.junit.jupiter.SpringExtension.class)
@OverrideAutoConfiguration(enabled=false)
@TypeExcludeFilters(org.opensearch.spring.boot.autoconfigure.test.OpenSearchTypeExcludeFilter.class)
@AutoConfigureCache
@AutoConfigureDataOpenSearch
public @interface DataOpenSearchTest
Annotation that can be used for a Data OpenSearch test that focuses
only on Spring Data OpenSearch components.
Using this annotation will disable full auto-configuration and instead apply only configuration relevant to Data OpenSearch tests.
When using JUnit 4, this annotation should be used in combination with
@RunWith(SpringRunner.class).