Minor updated
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@85761 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
25af34418b
commit
2ac2e4145d
|
@ -0,0 +1,31 @@
|
||||||
|
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 TestServiceOperations {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void TestTROperation() {
|
||||||
|
ScopeProvider.instance.set(Constants.DEFAULT_SCOPE);
|
||||||
|
TabularDataService service = TabularDataServiceFactory
|
||||||
|
.getService(Constants.DEFAULT_USER);
|
||||||
|
List<EligibleOperation> trOperations=service.getCapabilities();
|
||||||
|
System.out.println("------------Tabular Resource Operation--------------");
|
||||||
|
for(EligibleOperation operation: trOperations){
|
||||||
|
System.out.println(operation.toString());
|
||||||
|
}
|
||||||
|
Assert.assertTrue(trOperations.size()>0);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue