blob: 35dd0bd70fb2afb23bf94f9fa8c4f42fac73a296 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
package org.onap.aai.sparky.sync.config;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import org.junit.Before;
import org.junit.Test;
public class ElasticSearchEndpointConfigTest {
private ElasticSearchEndpointConfig elasticSearchEndpointConfig;
@Before
public void init() throws Exception {
elasticSearchEndpointConfig = new ElasticSearchEndpointConfig();
}
@Test
public void updateValues() {
elasticSearchEndpointConfig.setEsIpAddress("10.247.25.26");
assertNotNull(elasticSearchEndpointConfig.getEsIpAddress());
elasticSearchEndpointConfig.setEsServerPort("6585");
assertNotNull(elasticSearchEndpointConfig.getEsServerPort());
elasticSearchEndpointConfig.setScrollContextTimeToLiveInMinutes(3);
assertEquals(3,elasticSearchEndpointConfig.getScrollContextTimeToLiveInMinutes());
elasticSearchEndpointConfig.setScrollContextBatchRequestSize(3);
assertEquals(3,elasticSearchEndpointConfig.getScrollContextBatchRequestSize());
}
}
|