| File was renamed from opendj-server-legacy/src/test/java/org/opends/server/backends/pluggable/persistit/PersistitTestCase.java |
| | |
| | | * Copyright 2015 ForgeRock AS |
| | | */ |
| | | |
| | | package org.opends.server.backends.pluggable.persistit; |
| | | package org.opends.server.backends.pluggable.pdb; |
| | | |
| | | import static org.mockito.Mockito.mock; |
| | | import static org.mockito.Mockito.when; |
| | | |
| | | import org.opends.server.admin.std.server.PersistitBackendCfg; |
| | | import org.opends.server.backends.persistit.PitBackend; |
| | | import org.opends.server.admin.std.server.PDBBackendCfg; |
| | | import org.opends.server.backends.pdb.PDBBackend; |
| | | import org.opends.server.backends.pluggable.PluggableBackendImplTestCase; |
| | | |
| | | /** |
| | | * PersistIt Tester. |
| | | * PDBBackend Tester. |
| | | */ |
| | | public class PersistitTestCase extends PluggableBackendImplTestCase<PersistitBackendCfg> |
| | | public class PDBTestCase extends PluggableBackendImplTestCase<PDBBackendCfg> |
| | | { |
| | | @Override |
| | | protected PitBackend createBackend() |
| | | protected PDBBackend createBackend() |
| | | { |
| | | return new PitBackend(); |
| | | return new PDBBackend(); |
| | | } |
| | | |
| | | @Override |
| | | protected PersistitBackendCfg createBackendCfg() |
| | | protected PDBBackendCfg createBackendCfg() |
| | | { |
| | | PersistitBackendCfg backendCfg = mock(PersistitBackendCfg.class); |
| | | PDBBackendCfg backendCfg = mock(PDBBackendCfg.class); |
| | | when(backendCfg.getDBDirectory()).thenReturn(backendTestName); |
| | | when(backendCfg.getDBDirectoryPermissions()).thenReturn("755"); |
| | | when(backendCfg.getDBCacheSize()).thenReturn(0L); |