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:
parent
7878e705d7
commit
38dfd21272
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue