blob: 96e8a7e70b35f7ab7da8fa31ec5810348c27c93f (
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
|
package org.openecomp.sdc.be.dao.cassandra;
import java.util.List;
import org.junit.Test;
import org.openecomp.sdc.be.resources.data.SdcSchemaFilesData;
import fj.data.Either;
public class SdcSchemaFilesCassandraDaoTest {
private SdcSchemaFilesCassandraDao createTestSubject() {
return new SdcSchemaFilesCassandraDao();
}
@Test
public void testGetSpecificSchemaFiles() throws Exception {
SdcSchemaFilesCassandraDao testSubject;
String sdcreleasenum = "";
String conformancelevel = "";
Either<List<SdcSchemaFilesData>, CassandraOperationStatus> result;
// default test
testSubject = createTestSubject();
result = testSubject.getSpecificSchemaFiles(sdcreleasenum, conformancelevel);
}
@Test
public void testDeleteAllArtifacts() throws Exception {
SdcSchemaFilesCassandraDao testSubject;
CassandraOperationStatus result;
// default test
testSubject = createTestSubject();
result = testSubject.deleteAllArtifacts();
}
@Test
public void testIsTableEmpty() throws Exception {
SdcSchemaFilesCassandraDao testSubject;
String tableName = "";
Either<Boolean, CassandraOperationStatus> result;
// default test
testSubject = createTestSubject();
result = testSubject.isTableEmpty(tableName);
}
}
|