blob: bf14cd7a4bf3fff382d4c47b1b36384580c7d1d9 (
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
|
package org.onap.aai.sparky.search.filters.entity;
import static org.junit.Assert.assertNotNull;
import org.junit.Before;
import org.junit.Test;
public class MatchFilterCriteriaEntityTest {
private MatchFilterCriteriaEntity matchFilterCriteriaEntity;
@Before
public void init() throws Exception {
matchFilterCriteriaEntity = new MatchFilterCriteriaEntity("criteria-1", "value-1");
}
@Test
public void updateValues() {
matchFilterCriteriaEntity.setCriteriaName("criteria-2");
assertNotNull(matchFilterCriteriaEntity.getCriteriaName());
matchFilterCriteriaEntity.setCriteriaValue("value-2");
assertNotNull(matchFilterCriteriaEntity.getCriteriaValue());
assertNotNull(matchFilterCriteriaEntity.getJsonObject());
assertNotNull(matchFilterCriteriaEntity.toString());
}
}
|