| File was renamed from opendj-server-legacy/src/test/java/org/opends/server/backends/GenericBackendTestCase.java |
| | |
| | | |
| | | /** A set of generic test cases that apply to all Directory Server backends. */ |
| | | @SuppressWarnings("javadoc") |
| | | public class GenericBackendTestCase extends BackendTestCase |
| | | public class GenericLocalBackendTestCase extends BackendTestCase |
| | | { |
| | | /** Ensures that the Directory Server is running. */ |
| | | @BeforeClass |
| | |
| | | * @return The backends defined in the server. |
| | | */ |
| | | @DataProvider(name = "backends") |
| | | public Object[][] getBackends() |
| | | public Object[][] getLocalBackends() |
| | | { |
| | | List<LocalBackend<?>> backendList = new ArrayList<>( |
| | | TestCaseUtils.getServerContext().getBackendConfigManager().getLocalBackends()); |
| | |
| | | b.getEntryCount(); |
| | | } |
| | | |
| | | /** Tests the {@link LocalBackend#getParentBackend} method for the provided backend. */ |
| | | @Test(dataProvider = "backends") |
| | | public void testGetParentBackend(LocalBackend<?> b) |
| | | { |
| | | b.getParentBackend(); |
| | | } |
| | | |
| | | /** Tests the {@link LocalBackend#getSubordinateBackends} method for the provided backend. */ |
| | | @Test(dataProvider = "backends") |
| | | public void testGetSubordinateBackends(LocalBackend<?> b) |
| | | { |
| | | assertNotNull(b.getSubordinateBackends()); |
| | | } |
| | | |
| | | /** |
| | | * Tests the {@link LocalBackend#handlesEntry} method for the provided backend for each of the declared |
| | | * base DNs. |