Fixed test

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/document-store-lib-accounting-service@161892 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2017-12-22 16:00:58 +00:00
parent 7878e705d7
commit 38dfd21272
1 changed files with 3 additions and 1 deletions

View File

@ -19,8 +19,10 @@ public class AccountingServiceFromPersistence extends AccountingServiceTest {
public void before() {
String context = ScopedTest.getCurrentContext();
persistenceBackend = PersistenceBackendFactory.getPersistenceBackend(context);
persistenceBackend = PersistenceBackendFactory.discoverPersistenceBackend(context,
if(persistenceBackend instanceof FallbackPersistenceBackend) {
persistenceBackend = PersistenceBackendFactory.discoverPersistenceBackend(context,
(FallbackPersistenceBackend) persistenceBackend);
}
Assert.assertTrue(persistenceBackend instanceof PersistenceAccountingService);
logger.debug("Persistence Backend is {}", persistenceBackend.getClass().getSimpleName());