Added operations test

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@85743 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2013-11-20 08:45:53 +00:00
parent aa64fe2725
commit e2f901e281
1 changed files with 5 additions and 2 deletions

View File

@ -16,6 +16,7 @@ import org.gcube.data.analysis.tabulardata.service.operation.Task;
import org.gcube.data.analysis.tabulardata.service.tabular.TabularResource;
import org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceId;
import org.gcube.data.analysis.tabulardata.service.tabular.metadata.NameMetadata;
import org.gcube.portlets.user.td.gwtservice.shared.Constants;
import org.junit.Assert;
import org.junit.Test;
@ -35,9 +36,9 @@ public class TestService {
@Test
public void create() throws Exception {
ScopeProvider.instance.set("/gcube/devsec");
ScopeProvider.instance.set(Constants.DEFAULT_SCOPE);
TabularDataService service = TabularDataServiceFactory
.getService("giancarlo.panichi");
.getService(Constants.DEFAULT_USER);
TabularResource resource = service.createTabularResource();
System.out.println("after createTabResource "
+ ScopeProvider.instance.get());
@ -88,4 +89,6 @@ public class TestService {
}
}