Fixing tests

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-publisher@133909 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2016-11-04 15:16:05 +00:00
parent b1ddcf4364
commit c0895bc2d3
3 changed files with 8 additions and 8 deletions

View File

@ -26,7 +26,7 @@ import org.gcube.informationsystem.model.relation.isrelatedto.Hosts;
import org.gcube.informationsystem.resourceregistry.publisher.proxy.ResourceRegistryPublisher;
import org.gcube.informationsystem.resourceregistry.publisher.proxy.ResourceRegistryPublisherFactory;
import org.junit.Assert;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -41,7 +41,7 @@ public class EntityManagementTest extends ScopedTest {
protected ResourceRegistryPublisher resourceRegistryPublisher;
@Before
@BeforeClass
public void before() throws Exception {
super.before();
resourceRegistryPublisher = ResourceRegistryPublisherFactory.create();

View File

@ -24,7 +24,7 @@ import org.gcube.informationsystem.resourceregistry.client.proxy.ResourceRegistr
import org.gcube.informationsystem.resourceregistry.publisher.proxy.ResourceRegistryPublisher;
import org.gcube.informationsystem.resourceregistry.publisher.proxy.ResourceRegistryPublisherFactory;
import org.junit.Assert;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -40,7 +40,7 @@ public class RRClientTest extends ScopedTest {
protected ResourceRegistryPublisher resourceRegistryPublisher;
protected ResourceRegistryClient resourceRegistryClient;
@Before
@BeforeClass
public void before() throws Exception {
super.before();
resourceRegistryPublisher = ResourceRegistryPublisherFactory.create();

View File

@ -8,8 +8,8 @@ import org.gcube.common.authorization.client.exceptions.ObjectNotFound;
import org.gcube.common.authorization.library.AuthorizationEntry;
import org.gcube.common.authorization.library.provider.SecurityTokenProvider;
import org.gcube.common.scope.api.ScopeProvider;
import org.junit.After;
import org.junit.Before;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -30,13 +30,13 @@ public class ScopedTest {
return context;
}
@Before
@BeforeClass
public void before() throws Exception{
SecurityTokenProvider.instance.set(TOKEN);
ScopeProvider.instance.set(getCurrentScope());
}
@After
@AfterClass
public void after() throws Exception{
SecurityTokenProvider.instance.reset();
ScopeProvider.instance.reset();