1 package org.onap.aai.sparky.search.filters.entity;
3 import static org.junit.Assert.assertEquals;
4 import static org.junit.Assert.assertNotNull;
6 import org.junit.Before;
10 public class AggregationEntityTest {
12 private AggregationEntity aggregateEntity;
15 public void init() throws Exception {
16 aggregateEntity = new AggregationEntity("aggregate-1", "autosuggest", 10);
21 public void updateValues() {
23 aggregateEntity.setAggregationName("aggregate-2");
24 assertNotNull(aggregateEntity.getAggregationName());
25 aggregateEntity.setAggregationFieldName("autosearch");
26 assertNotNull(aggregateEntity.getAggregationFieldName());
27 assertNotNull(aggregateEntity.getJsonObject());
28 aggregateEntity.setSize(25);
29 assertEquals(25, aggregateEntity.getSize());