From ef1db53e8d036ef2d330d3180b70517a2b9d6fbf Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Fri, 28 Nov 2014 15:22:42 +0000 Subject: [PATCH] Minor update git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@101772 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../td/gwtservice/client/TestServiceListTR.java | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/gcube/portlets/user/td/gwtservice/client/TestServiceListTR.java b/src/test/java/org/gcube/portlets/user/td/gwtservice/client/TestServiceListTR.java index ba6cefe..5a6a5f2 100644 --- a/src/test/java/org/gcube/portlets/user/td/gwtservice/client/TestServiceListTR.java +++ b/src/test/java/org/gcube/portlets/user/td/gwtservice/client/TestServiceListTR.java @@ -1,5 +1,6 @@ package org.gcube.portlets.user.td.gwtservice.client; +import java.util.Collection; import java.util.List; import org.gcube.common.scope.api.ScopeProvider; @@ -10,6 +11,7 @@ import org.gcube.data.analysis.tabulardata.model.table.Table; import org.gcube.data.analysis.tabulardata.service.TabularDataService; import org.gcube.data.analysis.tabulardata.service.impl.TabularDataServiceFactory; import org.gcube.data.analysis.tabulardata.service.tabular.TabularResource; +import org.gcube.data.analysis.tabulardata.service.tabular.metadata.TabularResourceMetadata; import org.gcube.portlets.user.td.gwtservice.shared.Constants; import org.junit.Assert; import org.junit.Test; @@ -29,19 +31,25 @@ public class TestServiceListTR { Table lastTable=null; for (TabularResource tr : trs) { lastTable=service.getLastTable(tr.getId()); + Collection> metas=tr.getAllMetadata(); if(lastTable!=null){ - System.out.println("TabularResource: [ id=" + tr.getId().getValue()+", lastTable=[ id="+lastTable.getId().getValue()+", type="+lastTable.getTableType().getName()+"]]"); + System.out.println("TabularResource: [ id=" + tr.getId().getValue()+", type="+tr.getTabularResourceType()+", lastTable=[ id="+lastTable.getId().getValue()+", type="+lastTable.getTableType().getName()+"]]"); System.out.println("Last table id="+lastTable.getId()+", name="+lastTable.getName()); for(Column col:lastTable.getColumns()){ System.out.println("Column: [name:" + col.getName()+", localId:"+col.getLocalId()+", dataType:"+col.getDataType()+"]"); } - System.out.println("---------------------------------"); + + } else { System.out.println("TabularResource: [ id=" + tr.getId().getValue()+", lastTable= "+lastTable+"]"); - System.out.println("---------------------------------"); + } + for(TabularResourceMetadata meta:metas){ + System.out.println("Meta: "+meta); + } + System.out.println("---------------------------------"); }