1 package org.onap.aai.sparky.sync.config;
3 import static org.junit.Assert.assertEquals;
4 import static org.junit.Assert.assertNotNull;
9 import org.junit.Before;
10 import org.junit.Test;
13 public class ElasticSearchEndpointConfigTest {
15 private ElasticSearchEndpointConfig elasticSearchEndpointConfig;
18 public void init() throws Exception {
19 elasticSearchEndpointConfig = new ElasticSearchEndpointConfig();
25 public void updateValues() {
27 elasticSearchEndpointConfig.setEsIpAddress("10.247.25.26");
28 assertNotNull(elasticSearchEndpointConfig.getEsIpAddress());
29 elasticSearchEndpointConfig.setEsServerPort("6585");
30 assertNotNull(elasticSearchEndpointConfig.getEsServerPort());
31 elasticSearchEndpointConfig.setScrollContextTimeToLiveInMinutes(3);
32 assertEquals(3,elasticSearchEndpointConfig.getScrollContextTimeToLiveInMinutes());
33 elasticSearchEndpointConfig.setScrollContextBatchRequestSize(3);
34 assertEquals(3,elasticSearchEndpointConfig.getScrollContextBatchRequestSize());