From 5e07a8aaf31b190e042d10407777f8cff02458ec Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Fri, 19 Feb 2016 15:16:49 +0000 Subject: [PATCH] Added Test git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/private/luca.frosini/infrastructure-tests@124384 82a268e6-3cf1-43bd-a215-b396298e98cf --- pom.xml | 6 ++++++ src/test/java/org/gcube/test/AccountingTest.java | 8 +++----- src/test/java/org/gcube/testutility/ScopedTest.java | 1 - 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 7892c2b..dd92e3a 100644 --- a/pom.xml +++ b/pom.xml @@ -37,6 +37,12 @@ [1.0.1-SNAPSHOT, 2.0.0-SNAPSHOT) test + + org.reflections + reflections + 0.9.10 + test + org.gcube.data.publishing document-store-lib-couchdb diff --git a/src/test/java/org/gcube/test/AccountingTest.java b/src/test/java/org/gcube/test/AccountingTest.java index 1489930..bc81efd 100644 --- a/src/test/java/org/gcube/test/AccountingTest.java +++ b/src/test/java/org/gcube/test/AccountingTest.java @@ -24,16 +24,14 @@ public class AccountingTest extends ScopedTest { @Before public void before() throws Exception { super.before(); - AccountingPersistenceFactory.setFallbackLocation("./src/test/resources"); + AccountingPersistenceFactory.setFallbackLocation("src/test/resources"); accountingPersistence = AccountingPersistenceFactory.getPersistence(); } - @Test + //@Test public void testAccounting() throws Exception { logger.trace("Let See"); - - Thread.sleep(1000*60*10); - + Thread.sleep(1000*60*3); logger.trace("Finished"); } diff --git a/src/test/java/org/gcube/testutility/ScopedTest.java b/src/test/java/org/gcube/testutility/ScopedTest.java index aa8bde4..72a9a32 100644 --- a/src/test/java/org/gcube/testutility/ScopedTest.java +++ b/src/test/java/org/gcube/testutility/ScopedTest.java @@ -18,7 +18,6 @@ public class ScopedTest { public void before() throws Exception{ //SecurityTokenProvider.instance.set(TestUtility.TOKEN); ScopeProvider.instance.set("/gcube/devsec"); - ScopeProvider.instance.set("/gcube/devNext"); } @After