Added oparent to sdc main
[sdc.git] / catalog-dao / src / test / java / org / openecomp / sdc / be / dao / cassandra / schema / tables / ArtifactTableDescriptionTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.sdc.be.dao.cassandra.schema.tables;
22
23 import java.util.List;
24 import java.util.Map;
25
26 import org.apache.commons.lang3.tuple.ImmutablePair;
27 import org.junit.Test;
28
29 import com.datastax.driver.core.DataType;
30
31
32 public class ArtifactTableDescriptionTest {
33
34         private ArtifactTableDescription createTestSubject() {
35                 return new ArtifactTableDescription();
36         }
37
38         
39         @Test
40         public void testPrimaryKeys() throws Exception {
41                 ArtifactTableDescription testSubject;
42                 List<ImmutablePair<String, DataType>> result;
43
44                 // default test
45                 testSubject = createTestSubject();
46                 result = testSubject.primaryKeys();
47         }
48
49         
50         @Test
51         public void testGetColumnDescription() throws Exception {
52                 ArtifactTableDescription testSubject;
53                 Map<String, ImmutablePair<DataType, Boolean>> result;
54
55                 // default test
56                 testSubject = createTestSubject();
57                 result = testSubject.getColumnDescription();
58         }
59
60         
61         @Test
62         public void testGetKeyspace() throws Exception {
63                 ArtifactTableDescription testSubject;
64                 String result;
65
66                 // default test
67                 testSubject = createTestSubject();
68                 result = testSubject.getKeyspace();
69         }
70
71         
72         @Test
73         public void testGetTableName() throws Exception {
74                 ArtifactTableDescription testSubject;
75                 String result;
76
77                 // default test
78                 testSubject = createTestSubject();
79                 result = testSubject.getTableName();
80         }
81
82         
83         @Test
84         public void testClusteringKeys() throws Exception {
85                 ArtifactTableDescription testSubject;
86                 List<ImmutablePair<String, DataType>> result;
87
88                 // default test
89                 testSubject = createTestSubject();
90                 result = testSubject.clusteringKeys();
91         }
92 }