summaryrefslogtreecommitdiffstats
path: root/src/test/java/org/onap/aai/sparky/inventory/EntityHistoryQueryBuilderTest.java
blob: 2ecdda29123a7e6f5a6968ee0a38dba683805728 (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
32
33
package org.onap.aai.sparky.inventory;

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

//import java.security.SecureRandom;

import org.junit.Before;
import org.junit.Test;
//import org.openecomp.sparky.analytics.HistoricalCounter;
import org.onap.aai.sparky.inventory.EntityHistoryQueryBuilder;

public class EntityHistoryQueryBuilderTest {

  private EntityHistoryQueryBuilder entityHistoryQueryBuilder;

  @Before
  public void init() throws Exception {
    entityHistoryQueryBuilder = new EntityHistoryQueryBuilder();
  }

  @Test
  public void successfullBuild() {
    entityHistoryQueryBuilder.getQuery("table");
    assertNotNull(entityHistoryQueryBuilder.createTableQuery());
    entityHistoryQueryBuilder.getQuery("graph");
    assertNotNull(entityHistoryQueryBuilder.createGraphQuery());
    entityHistoryQueryBuilder.getQuery("tree");
    assertNull(entityHistoryQueryBuilder.getQuery("tree"));

  }

}