Added Test

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/private/luca.frosini/infrastructure-tests@124384 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2016-02-19 15:16:49 +00:00
parent 7585b2c72a
commit 5e07a8aaf3
3 changed files with 9 additions and 6 deletions

View File

@ -37,6 +37,12 @@
<version>[1.0.1-SNAPSHOT, 2.0.0-SNAPSHOT)</version> <version>[1.0.1-SNAPSHOT, 2.0.0-SNAPSHOT)</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>org.reflections</groupId>
<artifactId>reflections</artifactId>
<version>0.9.10</version>
<scope>test</scope>
</dependency>
<dependency> <dependency>
<groupId>org.gcube.data.publishing</groupId> <groupId>org.gcube.data.publishing</groupId>
<artifactId>document-store-lib-couchdb</artifactId> <artifactId>document-store-lib-couchdb</artifactId>

View File

@ -24,16 +24,14 @@ public class AccountingTest extends ScopedTest {
@Before @Before
public void before() throws Exception { public void before() throws Exception {
super.before(); super.before();
AccountingPersistenceFactory.setFallbackLocation("./src/test/resources"); AccountingPersistenceFactory.setFallbackLocation("src/test/resources");
accountingPersistence = AccountingPersistenceFactory.getPersistence(); accountingPersistence = AccountingPersistenceFactory.getPersistence();
} }
@Test //@Test
public void testAccounting() throws Exception { public void testAccounting() throws Exception {
logger.trace("Let See"); logger.trace("Let See");
Thread.sleep(1000*60*3);
Thread.sleep(1000*60*10);
logger.trace("Finished"); logger.trace("Finished");
} }

View File

@ -18,7 +18,6 @@ public class ScopedTest {
public void before() throws Exception{ public void before() throws Exception{
//SecurityTokenProvider.instance.set(TestUtility.TOKEN); //SecurityTokenProvider.instance.set(TestUtility.TOKEN);
ScopeProvider.instance.set("/gcube/devsec"); ScopeProvider.instance.set("/gcube/devsec");
ScopeProvider.instance.set("/gcube/devNext");
} }
@After @After