summaryrefslogtreecommitdiffstats
path: root/sparkybe-onap-service/src/test/java/org/onap/aai/sparky/search/EntityTypeSummaryBucketTest.java
blob: 31f0c04e6244ee364051e4aab8338571e55c5412 (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
package org.onap.aai.sparky.search;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

import org.junit.Before;
import org.junit.Test;

public class EntityTypeSummaryBucketTest {
	
private EntityTypeSummaryBucket entityTypeSummaryBucket;
	
	@Before
	  public void init() throws Exception {
		entityTypeSummaryBucket = new EntityTypeSummaryBucket();
	      
	  }
	
	
	@Test 
	public void updateValues() {
		
		entityTypeSummaryBucket.setKey("54566");
		assertNotNull(entityTypeSummaryBucket.getKey());
		entityTypeSummaryBucket.setCount(3);
		assertEquals(3,entityTypeSummaryBucket.getCount());
		
	}
	

}