1 package org.openecomp.sdc.be.dao.cassandra.schema.tables;
6 import org.apache.commons.lang3.tuple.ImmutablePair;
9 import com.datastax.driver.core.DataType;
12 public class CategoryEventTableDescriptionTest {
14 private CategoryEventTableDescription createTestSubject() {
15 return new CategoryEventTableDescription();
20 public void testPrimaryKeys() throws Exception {
21 CategoryEventTableDescription testSubject;
22 List<ImmutablePair<String, DataType>> result;
25 testSubject = createTestSubject();
26 result = testSubject.primaryKeys();
31 public void testClusteringKeys() throws Exception {
32 CategoryEventTableDescription testSubject;
33 List<ImmutablePair<String, DataType>> result;
36 testSubject = createTestSubject();
37 result = testSubject.clusteringKeys();
44 public void testGetKeyspace() throws Exception {
45 CategoryEventTableDescription testSubject;
49 testSubject = createTestSubject();
50 result = testSubject.getKeyspace();
55 public void testGetTableName() throws Exception {
56 CategoryEventTableDescription testSubject;
60 testSubject = createTestSubject();
61 result = testSubject.getTableName();
65 public void testGetColumnDescription() throws Exception {
66 CategoryEventTableDescription testSubject;
67 Map<String, ImmutablePair<DataType, Boolean>> result;
70 testSubject = createTestSubject();
71 result = testSubject.getColumnDescription();
73 CategoryEventTableDescription.CEFieldsDescription.ACTION.getType();
74 CategoryEventTableDescription.CEFieldsDescription.ACTION.isIndexed();