code stringlengths 23 201k | docstring stringlengths 17 96.2k | func_name stringlengths 0 235 | language stringclasses 1
value | repo stringlengths 8 72 | path stringlengths 11 317 | url stringlengths 57 377 | license stringclasses 7
values |
|---|---|---|---|---|---|---|---|
@Nullable
private ClusterConnectionInfo startElasticsearchContainer() {
LOGGER.info("Starting Elasticsearch Container...");
try {
IntegrationtestEnvironment integrationtestEnvironment = IntegrationtestEnvironment.get();
LOGGER.info("Integration test environment: " + integrationtestEnvironment);
if (inte... | @return the {@link ClusterConnectionInfo} from the ThreadLocal storage. | startElasticsearchContainer | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnection.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnection.java | Apache-2.0 |
private DockerImageName getDockerImageName(Map<String, String> testcontainersProperties) {
String imageName = testcontainersProperties.get(SDE_TESTCONTAINER_IMAGE_NAME);
String imageVersion = testcontainersProperties.get(SDE_TESTCONTAINER_IMAGE_VERSION);
if (imageName == null) {
throw new IllegalArgumentExce... | @return the {@link ClusterConnectionInfo} from the ThreadLocal storage. | getDockerImageName | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnection.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnection.java | Apache-2.0 |
private Map<String, String> testcontainersProperties(String propertiesFile) {
LOGGER.info("load configuration from " + propertiesFile);
try (InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propertiesFile)) {
Properties props = new Properties();
if (inputStream != null) {
props... | @return the {@link ClusterConnectionInfo} from the ThreadLocal storage. | testcontainersProperties | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnection.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnection.java | Apache-2.0 |
@Override
public void close() {
} | @return the {@link ClusterConnectionInfo} from the ThreadLocal storage. | close | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnection.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnection.java | Apache-2.0 |
@Override
protected Logger logger() {
return LoggerFactory.getLogger(SpringDataElasticsearchContainer.class);
} | @return the {@link ClusterConnectionInfo} from the ThreadLocal storage. | logger | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnection.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnection.java | Apache-2.0 |
public static Builder builder() {
return new Builder();
} | The information about the ClusterConnection.<br/>
The {@link #host}, {@link #httpPort} and {@link #useSsl} values specify the values needed to connect to the cluster
with a rest client for both a local started cluster and for one defined by the cluster URL when creating the
{@link ClusterConnection}.<br/>
The object mu... | builder | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnectionInfo.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnectionInfo.java | Apache-2.0 |
@Override
public String toString() {
return "ClusterConnectionInfo{" + //
"configuration: " + integrationtestEnvironment + //
", useSsl=" + useSsl + //
", host='" + host + '\'' + //
", httpPort=" + httpPort + //
'}'; //
} | The information about the ClusterConnection.<br/>
The {@link #host}, {@link #httpPort} and {@link #useSsl} values specify the values needed to connect to the cluster
with a rest client for both a local started cluster and for one defined by the cluster URL when creating the
{@link ClusterConnection}.<br/>
The object mu... | toString | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnectionInfo.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnectionInfo.java | Apache-2.0 |
public String getHost() {
return host;
} | The information about the ClusterConnection.<br/>
The {@link #host}, {@link #httpPort} and {@link #useSsl} values specify the values needed to connect to the cluster
with a rest client for both a local started cluster and for one defined by the cluster URL when creating the
{@link ClusterConnection}.<br/>
The object mu... | getHost | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnectionInfo.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnectionInfo.java | Apache-2.0 |
public int getHttpPort() {
return httpPort;
} | The information about the ClusterConnection.<br/>
The {@link #host}, {@link #httpPort} and {@link #useSsl} values specify the values needed to connect to the cluster
with a rest client for both a local started cluster and for one defined by the cluster URL when creating the
{@link ClusterConnection}.<br/>
The object mu... | getHttpPort | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnectionInfo.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnectionInfo.java | Apache-2.0 |
public String getClusterName() {
return clusterName;
} | The information about the ClusterConnection.<br/>
The {@link #host}, {@link #httpPort} and {@link #useSsl} values specify the values needed to connect to the cluster
with a rest client for both a local started cluster and for one defined by the cluster URL when creating the
{@link ClusterConnection}.<br/>
The object mu... | getClusterName | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnectionInfo.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnectionInfo.java | Apache-2.0 |
public boolean isUseSsl() {
return useSsl;
} | The information about the ClusterConnection.<br/>
The {@link #host}, {@link #httpPort} and {@link #useSsl} values specify the values needed to connect to the cluster
with a rest client for both a local started cluster and for one defined by the cluster URL when creating the
{@link ClusterConnection}.<br/>
The object mu... | isUseSsl | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnectionInfo.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnectionInfo.java | Apache-2.0 |
@Nullable
public ElasticsearchContainer getElasticsearchContainer() {
return elasticsearchContainer;
} | The information about the ClusterConnection.<br/>
The {@link #host}, {@link #httpPort} and {@link #useSsl} values specify the values needed to connect to the cluster
with a rest client for both a local started cluster and for one defined by the cluster URL when creating the
{@link ClusterConnection}.<br/>
The object mu... | getElasticsearchContainer | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnectionInfo.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnectionInfo.java | Apache-2.0 |
public Builder withIntegrationtestEnvironment(IntegrationtestEnvironment integrationtestEnvironment) {
this.integrationtestEnvironment = integrationtestEnvironment;
return this;
} | The information about the ClusterConnection.<br/>
The {@link #host}, {@link #httpPort} and {@link #useSsl} values specify the values needed to connect to the cluster
with a rest client for both a local started cluster and for one defined by the cluster URL when creating the
{@link ClusterConnection}.<br/>
The object mu... | withIntegrationtestEnvironment | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnectionInfo.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnectionInfo.java | Apache-2.0 |
public Builder withHostAndPort(String host, int httpPort) {
Assert.hasLength(host, "host must not be empty");
this.host = host;
this.httpPort = httpPort;
return this;
} | The information about the ClusterConnection.<br/>
The {@link #host}, {@link #httpPort} and {@link #useSsl} values specify the values needed to connect to the cluster
with a rest client for both a local started cluster and for one defined by the cluster URL when creating the
{@link ClusterConnection}.<br/>
The object mu... | withHostAndPort | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnectionInfo.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnectionInfo.java | Apache-2.0 |
public Builder useSsl(boolean useSsl) {
this.useSsl = useSsl;
return this;
} | The information about the ClusterConnection.<br/>
The {@link #host}, {@link #httpPort} and {@link #useSsl} values specify the values needed to connect to the cluster
with a rest client for both a local started cluster and for one defined by the cluster URL when creating the
{@link ClusterConnection}.<br/>
The object mu... | useSsl | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnectionInfo.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnectionInfo.java | Apache-2.0 |
public Builder withElasticsearchContainer(ElasticsearchContainer elasticsearchContainer) {
this.elasticsearchContainer = elasticsearchContainer;
return this;
} | The information about the ClusterConnection.<br/>
The {@link #host}, {@link #httpPort} and {@link #useSsl} values specify the values needed to connect to the cluster
with a rest client for both a local started cluster and for one defined by the cluster URL when creating the
{@link ClusterConnection}.<br/>
The object mu... | withElasticsearchContainer | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnectionInfo.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnectionInfo.java | Apache-2.0 |
public ClusterConnectionInfo build() {
return new ClusterConnectionInfo(integrationtestEnvironment, host, httpPort, useSsl, elasticsearchContainer);
} | The information about the ClusterConnection.<br/>
The {@link #host}, {@link #httpPort} and {@link #useSsl} values specify the values needed to connect to the cluster
with a rest client for both a local started cluster and for one defined by the cluster URL when creating the
{@link ClusterConnection}.<br/>
The object mu... | build | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnectionInfo.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ClusterConnectionInfo.java | Apache-2.0 |
@Override
public ClientConfiguration clientConfiguration() {
String elasticsearchHostPort = clusterConnectionInfo.getHost() + ':' + clusterConnectionInfo.getHttpPort();
ClientConfiguration.TerminalClientConfigurationBuilder configurationBuilder = ClientConfiguration.builder()
.connectedTo(elasticsearchHostPor... | Configuration for Spring Data Elasticsearch tests using an {@link ElasticsearchTemplate}.
@author Peter-Josef Meisch
@since 4.4 | clientConfiguration | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ElasticsearchTemplateConfiguration.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ElasticsearchTemplateConfiguration.java | Apache-2.0 |
@Override
protected RefreshPolicy refreshPolicy() {
return RefreshPolicy.IMMEDIATE;
} | Configuration for Spring Data Elasticsearch tests using an {@link ElasticsearchTemplate}.
@author Peter-Josef Meisch
@since 4.4 | refreshPolicy | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ElasticsearchTemplateConfiguration.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ElasticsearchTemplateConfiguration.java | Apache-2.0 |
@Override
public ClientConfiguration clientConfiguration() {
String elasticsearchHostPort = clusterConnectionInfo.getHost() + ':' + clusterConnectionInfo.getHttpPort();
ClientConfiguration.TerminalClientConfigurationBuilder configurationBuilder = ClientConfiguration.builder() //
.connectedTo(elasticsearchHost... | Configuration for Spring Data Elasticsearch tests using an {@link ReactiveElasticsearchTemplate}.
@author Peter-Josef Meisch
@since 4.4 | clientConfiguration | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ReactiveElasticsearchTemplateConfiguration.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ReactiveElasticsearchTemplateConfiguration.java | Apache-2.0 |
@Override
protected RefreshPolicy refreshPolicy() {
return RefreshPolicy.IMMEDIATE;
} | Configuration for Spring Data Elasticsearch tests using an {@link ReactiveElasticsearchTemplate}.
@author Peter-Josef Meisch
@since 4.4 | refreshPolicy | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ReactiveElasticsearchTemplateConfiguration.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/ReactiveElasticsearchTemplateConfiguration.java | Apache-2.0 |
@Override
public void beforeAll(ExtensionContext extensionContext) {
initLock.lock();
try {
ExtensionContext.Store store = getStore(extensionContext);
ClusterConnection clusterConnection = store.getOrComputeIfAbsent(STORE_KEY_CLUSTER_CONNECTION, key -> {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("... | This extension class check in the {@link #beforeAll(ExtensionContext)} call if there is already an Elasticsearch
cluster connection defined in the root store. If no, the connection to the cluster is defined according to the
configuration, starting a local node if necessary. The connection is stored and will be closed w... | beforeAll | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/SpringDataElasticsearchExtension.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/SpringDataElasticsearchExtension.java | Apache-2.0 |
private ExtensionContext.Store getStore(ExtensionContext extensionContext) {
return extensionContext.getRoot().getStore(NAMESPACE);
} | This extension class check in the {@link #beforeAll(ExtensionContext)} call if there is already an Elasticsearch
cluster connection defined in the root store. If no, the connection to the cluster is defined according to the
configuration, starting a local node if necessary. The connection is stored and will be closed w... | getStore | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/SpringDataElasticsearchExtension.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/SpringDataElasticsearchExtension.java | Apache-2.0 |
private ClusterConnection createClusterConnection() {
return new ClusterConnection();
} | This extension class check in the {@link #beforeAll(ExtensionContext)} call if there is already an Elasticsearch
cluster connection defined in the root store. If no, the connection to the cluster is defined according to the
configuration, starting a local node if necessary. The connection is stored and will be closed w... | createClusterConnection | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/SpringDataElasticsearchExtension.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/SpringDataElasticsearchExtension.java | Apache-2.0 |
@Override
public boolean supportsParameter(ParameterContext parameterContext, ExtensionContext extensionContext)
throws ParameterResolutionException {
Class<?> parameterType = parameterContext.getParameter().getType();
return parameterType.isAssignableFrom(ClusterConnectionInfo.class);
} | This extension class check in the {@link #beforeAll(ExtensionContext)} call if there is already an Elasticsearch
cluster connection defined in the root store. If no, the connection to the cluster is defined according to the
configuration, starting a local node if necessary. The connection is stored and will be closed w... | supportsParameter | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/SpringDataElasticsearchExtension.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/SpringDataElasticsearchExtension.java | Apache-2.0 |
@Override
public Object resolveParameter(ParameterContext parameterContext, ExtensionContext extensionContext)
throws ParameterResolutionException {
return getStore(extensionContext).get(STORE_KEY_CLUSTER_CONNECTION_INFO, ClusterConnectionInfo.class);
} | This extension class check in the {@link #beforeAll(ExtensionContext)} call if there is already an Elasticsearch
cluster connection defined in the root store. If no, the connection to the cluster is defined according to the
configuration, starting a local node if necessary. The connection is stored and will be closed w... | resolveParameter | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/SpringDataElasticsearchExtension.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/SpringDataElasticsearchExtension.java | Apache-2.0 |
@Override
public ContextCustomizer createContextCustomizer(Class<?> testClass,
List<ContextConfigurationAttributes> configAttributes) {
return this::customizeContext;
} | This extension class check in the {@link #beforeAll(ExtensionContext)} call if there is already an Elasticsearch
cluster connection defined in the root store. If no, the connection to the cluster is defined according to the
configuration, starting a local node if necessary. The connection is stored and will be closed w... | createContextCustomizer | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/SpringDataElasticsearchExtension.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/SpringDataElasticsearchExtension.java | Apache-2.0 |
private void customizeContext(ConfigurableApplicationContext context, MergedContextConfiguration mergedConfig) {
ClusterConnectionInfo clusterConnectionInfo = ClusterConnection.clusterConnectionInfo();
if (clusterConnectionInfo != null) {
context.getBeanFactory().registerResolvableDependency(ClusterConnectionI... | This extension class check in the {@link #beforeAll(ExtensionContext)} call if there is already an Elasticsearch
cluster connection defined in the root store. If no, the connection to the cluster is defined according to the
configuration, starting a local node if necessary. The connection is stored and will be closed w... | customizeContext | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/junit/jupiter/SpringDataElasticsearchExtension.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/SpringDataElasticsearchExtension.java | Apache-2.0 |
@Nullable
public CdiProductRepository getRepository() {
return repository;
} | @author Mohsin Husen
@author Oliver Gierke
@author Mark Paluch
@author Peter-Josef Meisch | getRepository | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryClient.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryClient.java | Apache-2.0 |
@Inject
public void setRepository(CdiProductRepository repository) {
this.repository = repository;
} | @author Mohsin Husen
@author Oliver Gierke
@author Mark Paluch
@author Peter-Josef Meisch | setRepository | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryClient.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryClient.java | Apache-2.0 |
@Nullable
public SamplePersonRepository getSamplePersonRepository() {
return samplePersonRepository;
} | @author Mohsin Husen
@author Oliver Gierke
@author Mark Paluch
@author Peter-Josef Meisch | getSamplePersonRepository | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryClient.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryClient.java | Apache-2.0 |
@Inject
public void setSamplePersonRepository(SamplePersonRepository samplePersonRepository) {
this.samplePersonRepository = samplePersonRepository;
} | @author Mohsin Husen
@author Oliver Gierke
@author Mark Paluch
@author Peter-Josef Meisch | setSamplePersonRepository | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryClient.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryClient.java | Apache-2.0 |
@Nullable
public QualifiedProductRepository getQualifiedProductRepository() {
return qualifiedProductRepository;
} | @author Mohsin Husen
@author Oliver Gierke
@author Mark Paluch
@author Peter-Josef Meisch | getQualifiedProductRepository | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryClient.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryClient.java | Apache-2.0 |
@Inject
public void setQualifiedProductRepository(
@PersonDB @OtherQualifier QualifiedProductRepository qualifiedProductRepository) {
this.qualifiedProductRepository = qualifiedProductRepository;
} | @author Mohsin Husen
@author Oliver Gierke
@author Mark Paluch
@author Peter-Josef Meisch | setQualifiedProductRepository | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryClient.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryClient.java | Apache-2.0 |
@BeforeAll
public static void init() throws Exception {
container = SeContainerInitializer.newInstance() //
.disableDiscovery()//
.addPackages(CdiRepositoryTests.class) //
.initialize();
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | init | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
@AfterAll
public static void shutdown() throws Exception {
if (container != null) {
ElasticsearchOperations operations = container.select(ElasticsearchOperations.class).get();
if (operations != null) {
operations.indexOps(IndexCoordinates.of(PERSON_INDEX)).delete();
operations.indexOps(IndexCoordinat... | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | shutdown | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
@BeforeEach
public void setUp() {
CdiRepositoryClient client = container.select(CdiRepositoryClient.class).get();
repository = client.getRepository();
personRepository = client.getSamplePersonRepository();
repository.deleteAll();
qualifiedProductRepository = client.getQualifiedProductRepository();
qualifi... | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setUp | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
@Test
public void testCdiRepository() {
assertThat(repository).isNotNull();
Product bean = new Product();
bean.setId("id-1");
bean.setName("cidContainerTest-1");
repository.save(bean);
assertThat(repository.existsById(bean.getId())).isTrue();
Optional<Product> retrieved = repository.findById(bean.ge... | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | testCdiRepository | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
@Test // DATAES-234
public void testQualifiedCdiRepository() {
assertThat(qualifiedProductRepository).isNotNull();
Product bean = new Product();
bean.setId("id-1");
bean.setName("cidContainerTest-1");
qualifiedProductRepository.save(bean);
assertThat(qualifiedProductRepository.existsById(bean.getId())).... | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | testQualifiedCdiRepository | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
@Test // DATAES-113
public void returnOneFromCustomImpl() {
assertThat(personRepository.returnOne()).isEqualTo(1);
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | returnOneFromCustomImpl | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
@Nullable
public String getId() {
return id;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getId | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
public void setId(@Nullable String id) {
this.id = id;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setId | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
@Nullable
public List<String> getTitle() {
return title;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getTitle | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
public void setTitle(@Nullable List<String> title) {
this.title = title;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setTitle | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
@Nullable
public String getName() {
return name;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getName | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
public void setName(@Nullable String name) {
this.name = name;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setName | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
@Nullable
public String getDescription() {
return description;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getDescription | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
public void setDescription(@Nullable String description) {
this.description = description;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setDescription | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
@Nullable
public String getText() {
return text;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getText | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
public void setText(@Nullable String text) {
this.text = text;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setText | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
@Nullable
public List<String> getCategories() {
return categories;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getCategories | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
public void setCategories(@Nullable List<String> categories) {
this.categories = categories;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setCategories | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
@Nullable
public Float getWeight() {
return weight;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getWeight | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
public void setWeight(@Nullable Float weight) {
this.weight = weight;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setWeight | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
@Nullable
public Float getPrice() {
return price;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getPrice | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
public void setPrice(@Nullable Float price) {
this.price = price;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setPrice | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
@Nullable
public Integer getPopularity() {
return popularity;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getPopularity | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
public void setPopularity(@Nullable Integer popularity) {
this.popularity = popularity;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setPopularity | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
public boolean isAvailable() {
return available;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | isAvailable | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
public void setAvailable(boolean available) {
this.available = available;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setAvailable | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
@Nullable
public String getLocation() {
return location;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getLocation | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
public void setLocation(@Nullable String location) {
this.location = location;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setLocation | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
@Nullable
public Date getLastModified() {
return lastModified;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getLastModified | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
public void setLastModified(@Nullable Date lastModified) {
this.lastModified = lastModified;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setLastModified | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
@Nullable
public String getId() {
return id;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getId | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
public void setId(@Nullable String id) {
this.id = id;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setId | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
@Nullable
public String getName() {
return name;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getName | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
public void setName(@Nullable String name) {
this.name = name;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setName | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
@Nullable
public Author getAuthor() {
return author;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getAuthor | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
public void setAuthor(@Nullable Author author) {
this.author = author;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setAuthor | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
@Nullable
public Map<Integer, Collection<String>> getBuckets() {
return buckets;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getBuckets | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
public void setBuckets(@Nullable Map<Integer, Collection<String>> buckets) {
this.buckets = buckets;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setBuckets | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
@Nullable
public String getDescription() {
return description;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getDescription | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
public void setDescription(@Nullable String description) {
this.description = description;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setDescription | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
@Nullable
public String getName() {
return name;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getName | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
public void setName(@Nullable String name) {
this.name = name;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setName | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
@Nullable
public String getModel() {
return model;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getModel | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
public void setModel(@Nullable String model) {
this.model = model;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setModel | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
@Nullable
public String getId() {
return id;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getId | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
public void setId(@Nullable String id) {
this.id = id;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setId | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
@Nullable
public String getName() {
return name;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getName | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
public void setName(@Nullable String name) {
this.name = name;
} | @author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setName | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/CdiRepositoryTests.java | Apache-2.0 |
@Produces
public ElasticsearchOperations createElasticsearchTemplate(ElasticsearchClient elasticsearchClient) {
return new ElasticsearchTemplate(elasticsearchClient);
} | @author Mohsin Husen
@author Peter-Josef Meisch | createElasticsearchTemplate | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/ElasticsearchOperationsProducer.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/ElasticsearchOperationsProducer.java | Apache-2.0 |
@Produces
@OtherQualifier
@PersonDB
public ElasticsearchOperations createQualifiedElasticsearchTemplate(ElasticsearchClient elasticsearchClient) {
return new ElasticsearchTemplate(elasticsearchClient);
} | @author Mohsin Husen
@author Peter-Josef Meisch | createQualifiedElasticsearchTemplate | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/ElasticsearchOperationsProducer.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/ElasticsearchOperationsProducer.java | Apache-2.0 |
@SuppressWarnings("EmptyMethod")
@PreDestroy
public void shutdown() {
// remove everything to avoid conflicts with other tests in case server not shut down properly
} | @author Mohsin Husen
@author Peter-Josef Meisch | shutdown | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/ElasticsearchOperationsProducer.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/ElasticsearchOperationsProducer.java | Apache-2.0 |
@Produces
public ElasticsearchClient elasticsearchClient() {
// we rely on the tests being run with the SpringDataElasticsearchExtension class that sets up a containerized ES.
ClusterConnectionInfo connectionInfo = ClusterConnection.clusterConnectionInfo();
ClientConfiguration.TerminalClientConfigurationBuilder... | @author Mohsin Husen
@author Peter-Josef Meisch | elasticsearchClient | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/ElasticsearchOperationsProducer.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/ElasticsearchOperationsProducer.java | Apache-2.0 |
@Override
public int returnOne() {
return 1;
} | @author Mark Paluch
@see <a href="https://jira.spring.io/browse/DATAES-113">DATAES-113</a> | returnOne | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/cdi/SamplePersonRepositoryImpl.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/cdi/SamplePersonRepositoryImpl.java | Apache-2.0 |
@BeforeEach
public void before() {
indexNameProvider.increment();
operations.indexOps(SampleEntity.class).createWithMapping();
} | @author Artur Konczak
@author Mohsin Husen
@author Peter-Josef Meisch | before | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/autowiring/ComplexCustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/autowiring/ComplexCustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
@Test
@Order(java.lang.Integer.MAX_VALUE)
void cleanup() {
operations.indexOps(IndexCoordinates.of(indexNameProvider.getPrefix() + "*")).delete();
} | @author Artur Konczak
@author Mohsin Husen
@author Peter-Josef Meisch | cleanup | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/autowiring/ComplexCustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/autowiring/ComplexCustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
@Test
public void shouldExecuteComplexCustomMethod() {
String result = complexRepository.doSomethingSpecial();
assertThat(result).isEqualTo("2+2=4");
} | @author Artur Konczak
@author Mohsin Husen
@author Peter-Josef Meisch | shouldExecuteComplexCustomMethod | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/autowiring/ComplexCustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/autowiring/ComplexCustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
@Nullable
public String getId() {
return id;
} | @author Artur Konczak
@author Mohsin Husen
@author Peter-Josef Meisch | getId | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/autowiring/ComplexCustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/autowiring/ComplexCustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
public void setId(@Nullable String id) {
this.id = id;
} | @author Artur Konczak
@author Mohsin Husen
@author Peter-Josef Meisch | setId | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/autowiring/ComplexCustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/autowiring/ComplexCustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
@Nullable
public String getType() {
return type;
} | @author Artur Konczak
@author Mohsin Husen
@author Peter-Josef Meisch | getType | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/autowiring/ComplexCustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/autowiring/ComplexCustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
public void setType(@Nullable String type) {
this.type = type;
} | @author Artur Konczak
@author Mohsin Husen
@author Peter-Josef Meisch | setType | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/autowiring/ComplexCustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/autowiring/ComplexCustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
@Nullable
public String getMessage() {
return message;
} | @author Artur Konczak
@author Mohsin Husen
@author Peter-Josef Meisch | getMessage | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/autowiring/ComplexCustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/autowiring/ComplexCustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
public void setMessage(@Nullable String message) {
this.message = message;
} | @author Artur Konczak
@author Mohsin Husen
@author Peter-Josef Meisch | setMessage | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/autowiring/ComplexCustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/autowiring/ComplexCustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
@Override
public String doSomethingSpecial() {
assertThat(operations.getElasticsearchConverter()).isNotNull();
return "2+2=4";
} | @author Artur Konczak
@author Peter-Josef Meisch | doSomethingSpecial | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/autowiring/ComplexElasticsearchRepositoryImpl.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/autowiring/ComplexElasticsearchRepositoryImpl.java | Apache-2.0 |
@BeforeEach
public void before() {
indexNameProvider.increment();
operations.indexOps(SampleEntity.class).createWithMapping();
} | @author Artur Konczak
@author Peter-Josef Meisch | before | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/manualwiring/ComplexCustomMethodRepositoryManualWiringIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/manualwiring/ComplexCustomMethodRepositoryManualWiringIntegrationTests.java | Apache-2.0 |
@Test
@Order(java.lang.Integer.MAX_VALUE)
void cleanup() {
operations.indexOps(IndexCoordinates.of(indexNameProvider.getPrefix() + "*")).delete();
} | @author Artur Konczak
@author Peter-Josef Meisch | cleanup | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/manualwiring/ComplexCustomMethodRepositoryManualWiringIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/manualwiring/ComplexCustomMethodRepositoryManualWiringIntegrationTests.java | Apache-2.0 |
@Test
public void shouldExecuteComplexCustomMethod() {
String result = complexRepository.doSomethingSpecial();
assertThat(result).isEqualTo("3+3=6");
} | @author Artur Konczak
@author Peter-Josef Meisch | shouldExecuteComplexCustomMethod | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/manualwiring/ComplexCustomMethodRepositoryManualWiringIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/manualwiring/ComplexCustomMethodRepositoryManualWiringIntegrationTests.java | Apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.