Increasing test coverage
[aai/sparky-be.git] / src / test / java / org / onap / aai / sparky / sync / config / ElasticSearchEndpointConfigTest.java
1 package org.onap.aai.sparky.sync.config;
2
3 import static org.junit.Assert.assertEquals;
4 import static org.junit.Assert.assertNotNull;
5
6
7
8
9 import org.junit.Before;
10 import org.junit.Test;
11
12
13 public class ElasticSearchEndpointConfigTest {
14         
15         private ElasticSearchEndpointConfig elasticSearchEndpointConfig;
16         
17         @Before
18           public void init() throws Exception {
19                 elasticSearchEndpointConfig = new ElasticSearchEndpointConfig();
20               
21           }
22         
23         
24         @Test 
25         public void updateValues() {
26                 
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());
35                 
36         }
37         
38
39 }