Minor updated
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@87262 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
61c825bc02
commit
4f43bd52d5
|
@ -9,6 +9,7 @@ import org.gcube.data.analysis.tabulardata.commons.utils.AuthorizationProvider;
|
||||||
import org.gcube.data.analysis.tabulardata.commons.utils.AuthorizationToken;
|
import org.gcube.data.analysis.tabulardata.commons.utils.AuthorizationToken;
|
||||||
import org.gcube.data.analysis.tabulardata.commons.webservice.types.operations.OperationDefinition;
|
import org.gcube.data.analysis.tabulardata.commons.webservice.types.operations.OperationDefinition;
|
||||||
import org.gcube.data.analysis.tabulardata.commons.webservice.types.operations.OperationExecution;
|
import org.gcube.data.analysis.tabulardata.commons.webservice.types.operations.OperationExecution;
|
||||||
|
import org.gcube.data.analysis.tabulardata.model.column.Column;
|
||||||
import org.gcube.data.analysis.tabulardata.model.table.Table;
|
import org.gcube.data.analysis.tabulardata.model.table.Table;
|
||||||
import org.gcube.data.analysis.tabulardata.query.parameters.QueryPage;
|
import org.gcube.data.analysis.tabulardata.query.parameters.QueryPage;
|
||||||
import org.gcube.data.analysis.tabulardata.service.TabularDataService;
|
import org.gcube.data.analysis.tabulardata.service.TabularDataService;
|
||||||
|
@ -200,8 +201,9 @@ public class TestService {
|
||||||
List<TabularResource> trs = service.getTabularResources();
|
List<TabularResource> trs = service.getTabularResources();
|
||||||
Assert.assertTrue(trs.size() > 0);
|
Assert.assertTrue(trs.size() > 0);
|
||||||
System.out.println("------------Tabular Resource--------------");
|
System.out.println("------------Tabular Resource--------------");
|
||||||
|
Table lastTable=null;
|
||||||
for (TabularResource tr : trs) {
|
for (TabularResource tr : trs) {
|
||||||
Table lastTable=service.getLastTable(tr.getId());
|
lastTable=service.getLastTable(tr.getId());
|
||||||
|
|
||||||
if(lastTable!=null){
|
if(lastTable!=null){
|
||||||
System.out.println("TabularResource: [" + tr.getId()+", lastTable: "+lastTable.getTableType().getName()+"]");
|
System.out.println("TabularResource: [" + tr.getId()+", lastTable: "+lastTable.getTableType().getName()+"]");
|
||||||
|
@ -210,6 +212,17 @@ public class TestService {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(lastTable!=null){
|
||||||
|
System.out.println("------------Test Column--------------");
|
||||||
|
System.out.println("Table "+lastTable.getId()+" "+lastTable.getName());
|
||||||
|
for(Column col:lastTable.getColumns()){
|
||||||
|
System.out.println("Column: [name:" + col.getName()+", localId:"+col.getLocalId()+", dataType:"+col.getDataType()+"]");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue