org.opensearch.spring.boot.autoconfigure.test.DataOpenSearchTestContextBootstrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-data-opensearch-test-autoconfigure Show documentation
Show all versions of spring-data-opensearch-test-autoconfigure Show documentation
Spring Boot autoconfigurations for Spring Data Implementation for OpenSearch to support testing
The newest version!
/*
* Copyright OpenSearch Contributors.
* SPDX-License-Identifier: Apache-2.0
*/
package org.opensearch.spring.boot.autoconfigure.test;
import org.springframework.boot.test.context.SpringBootTestContextBootstrapper;
import org.springframework.core.annotation.MergedAnnotations;
import org.springframework.core.annotation.MergedAnnotations.SearchStrategy;
class DataOpenSearchTestContextBootstrapper extends SpringBootTestContextBootstrapper {
@Override
protected String[] getProperties(Class> testClass) {
return MergedAnnotations.from(testClass, SearchStrategy.INHERITED_ANNOTATIONS)
.get(DataOpenSearchTest.class)
.getValue("properties", String[].class)
.orElse(null);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy