-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEdgeConvertCreateDDLTest.java
More file actions
65 lines (51 loc) · 1.35 KB
/
EdgeConvertCreateDDLTest.java
File metadata and controls
65 lines (51 loc) · 1.35 KB
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
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
public class EdgeConvertCreateDDLTest extends EdgeConvertCreateDDLTestClass {
EdgeConvertCreateDDLTestClass testObj;
EdgeTable tbl = new EdgeTable("2|anotherTest");
EdgeField fld = new EdgeField("1|test");
public EdgeConvertCreateDDLTest() {
tbl.addRelatedTable(1);
tbl.addNativeField(1);
tbl.makeArrays();
EdgeTable[] tblArr = {tbl};
EdgeField[] fldArr = {fld};
testObj = new EdgeConvertCreateDDLTestClass(tblArr, fldArr);
}
@Before
public void setUp() throws Exception {
//runner();
}
/*public void runner() {
testInitialize();
testGetTable();
testGetField();
}*/
@Test
public void testGetTable() {
assertEquals(tbl, testObj.getTable(2));
}
@Test
public void testGetField() {
assertEquals(fld, testObj.getField(1));
}
// Had to implement the abstract method
@Override
public String getDatabaseName() {
return null;
}
@Override
public String getProductName() {
return null;
}
@Override
public String getSQLString() {
return null;
}
@Override
public void createDDL() {
}
}