From aa64fe272570f8dfd8ce50434c70a3d0663dc65a Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Wed, 20 Nov 2013 08:45:36 +0000 Subject: [PATCH] Added operations test git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@85742 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../td/gwtservice/client/TestOperations.java | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/test/java/org/gcube/portlets/user/td/gwtservice/client/TestOperations.java diff --git a/src/test/java/org/gcube/portlets/user/td/gwtservice/client/TestOperations.java b/src/test/java/org/gcube/portlets/user/td/gwtservice/client/TestOperations.java new file mode 100644 index 0000000..df518e6 --- /dev/null +++ b/src/test/java/org/gcube/portlets/user/td/gwtservice/client/TestOperations.java @@ -0,0 +1,29 @@ +package org.gcube.portlets.user.td.gwtservice.client; + +import java.util.List; + + +import org.gcube.common.scope.api.ScopeProvider; +import org.gcube.data.analysis.tabulardata.operation.worker.EligibleOperation; +import org.gcube.data.analysis.tabulardata.service.TabularDataService; +import org.gcube.data.analysis.tabulardata.service.impl.TabularDataServiceFactory; +import org.gcube.portlets.user.td.gwtservice.shared.Constants; +import org.junit.Assert; +import org.junit.Test; + +public class TestOperations { + + @Test + public void test() { + ScopeProvider.instance.set(Constants.DEFAULT_SCOPE); + TabularDataService service = TabularDataServiceFactory + .getService(Constants.DEFAULT_USER); + List operations=service.getCapabilities(); + for(EligibleOperation operation: operations){ + System.out.println(operation.toString()); + } + Assert.assertTrue(operations.size()>0); + + } + +}