Add test cases to increase coverage
[aai/sparky-be.git] / sparkybe-onap-service / src / test / java / org / onap / aai / sparky / search / filters / entity / MatchFilterCriteriaEntityTest.java
1 package org.onap.aai.sparky.search.filters.entity;
2
3 import static org.junit.Assert.assertNotNull;
4
5 import org.junit.Before;
6 import org.junit.Test;
7
8 public class MatchFilterCriteriaEntityTest {
9
10   private MatchFilterCriteriaEntity matchFilterCriteriaEntity;
11
12   @Before
13   public void init() throws Exception {
14     matchFilterCriteriaEntity = new MatchFilterCriteriaEntity("criteria-1", "value-1");
15
16   }
17
18   @Test
19   public void updateValues() {
20
21     matchFilterCriteriaEntity.setCriteriaName("criteria-2");
22     assertNotNull(matchFilterCriteriaEntity.getCriteriaName());
23     matchFilterCriteriaEntity.setCriteriaValue("value-2");
24     assertNotNull(matchFilterCriteriaEntity.getCriteriaValue());
25     assertNotNull(matchFilterCriteriaEntity.getJsonObject());
26     assertNotNull(matchFilterCriteriaEntity.toString());
27
28   }
29
30 }