From 4f43bd52d545b2d2cbdda76d01b3c9ef44b90710 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Fri, 20 Dec 2013 14:49:20 +0000 Subject: [PATCH] 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 --- .../user/td/gwtservice/client/TestService.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/gcube/portlets/user/td/gwtservice/client/TestService.java b/src/test/java/org/gcube/portlets/user/td/gwtservice/client/TestService.java index 8f4dac0..cc0a5b0 100644 --- a/src/test/java/org/gcube/portlets/user/td/gwtservice/client/TestService.java +++ b/src/test/java/org/gcube/portlets/user/td/gwtservice/client/TestService.java @@ -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.webservice.types.operations.OperationDefinition; 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.query.parameters.QueryPage; import org.gcube.data.analysis.tabulardata.service.TabularDataService; @@ -200,8 +201,9 @@ public class TestService { List trs = service.getTabularResources(); Assert.assertTrue(trs.size() > 0); System.out.println("------------Tabular Resource--------------"); + Table lastTable=null; for (TabularResource tr : trs) { - Table lastTable=service.getLastTable(tr.getId()); + lastTable=service.getLastTable(tr.getId()); if(lastTable!=null){ 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()+"]"); + + } + + } + }