blob: 4a8c211497e9c746f86cc16e7e16d7ee3a9670c4 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
package org.openecomp.sdc.be.dao.cassandra.schema.tables;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.junit.Test;
import com.datastax.driver.core.DataType;
public class UserAdminEventTableDescriptionTest {
private UserAdminEventTableDescription createTestSubject() {
return new UserAdminEventTableDescription();
}
@Test
public void testPrimaryKeys() throws Exception {
UserAdminEventTableDescription testSubject;
List<ImmutablePair<String, DataType>> result;
// default test
testSubject = createTestSubject();
result = testSubject.primaryKeys();
}
@Test
public void testClusteringKeys() throws Exception {
UserAdminEventTableDescription testSubject;
List<ImmutablePair<String, DataType>> result;
// default test
testSubject = createTestSubject();
result = testSubject.clusteringKeys();
}
@Test
public void testGetKeyspace() throws Exception {
UserAdminEventTableDescription testSubject;
String result;
// default test
testSubject = createTestSubject();
result = testSubject.getKeyspace();
}
@Test
public void testGetTableName() throws Exception {
UserAdminEventTableDescription testSubject;
String result;
// default test
testSubject = createTestSubject();
result = testSubject.getTableName();
}
@Test
public void testGetColumnDescription() throws Exception {
UserAdminEventTableDescription testSubject;
Map<String, ImmutablePair<DataType, Boolean>> result;
// default test
testSubject = createTestSubject();
result = testSubject.getColumnDescription();
UserAdminEventTableDescription.UAEFieldsDescription.ACTION.getType();
UserAdminEventTableDescription.UAEFieldsDescription.ACTION.isIndexed();
}
}
|