Lines 93-99
Link Here
|
93 |
} |
93 |
} |
94 |
|
94 |
|
95 |
public static DBTable getTable(DataView dv, int index){ |
95 |
public static DBTable getTable(DataView dv, int index){ |
96 |
return dv.getDataViewDBTable().geTable(index); |
96 |
return dv.getDataViewDBTable().getTable(index); |
97 |
} |
97 |
} |
98 |
/** |
98 |
/** |
99 |
* Test of geTable method, of class DataViewDBTable. |
99 |
* Test of geTable method, of class DataViewDBTable. |
Lines 103-109
Link Here
|
103 |
String sqlStr = context.getSqlSelect(); |
103 |
String sqlStr = context.getSqlSelect(); |
104 |
DataView dv = DataView.create(dbconn, sqlStr, index); |
104 |
DataView dv = DataView.create(dbconn, sqlStr, index); |
105 |
DataViewDBTable instance = dv.getDataViewDBTable(); |
105 |
DataViewDBTable instance = dv.getDataViewDBTable(); |
106 |
DBTable result = instance.geTable(0); |
106 |
DBTable result = instance.getTable(0); |
107 |
assertNotNull(result); |
107 |
assertNotNull(result); |
108 |
assertEquals(11, instance.getColumnCount()); |
108 |
assertEquals(11, instance.getColumnCount()); |
109 |
} |
109 |
} |
Lines 117-123
Link Here
|
117 |
DataView dv = DataView.create(dbconn, sqlStr, index); |
117 |
DataView dv = DataView.create(dbconn, sqlStr, index); |
118 |
DataViewDBTable instance = dv.getDataViewDBTable(); |
118 |
DataViewDBTable instance = dv.getDataViewDBTable(); |
119 |
int expResult = 1; |
119 |
int expResult = 1; |
120 |
int result = instance.geTableCount(); |
120 |
int result = instance.getTableCount(); |
121 |
assertEquals(expResult, result); |
121 |
assertEquals(expResult, result); |
122 |
} |
122 |
} |
123 |
|
123 |
|