870930ab008b106540456b3efe47e7ec613c174dMatthew Swift * CDDL HEADER START
870930ab008b106540456b3efe47e7ec613c174dMatthew Swift * The contents of this file are subject to the terms of the
870930ab008b106540456b3efe47e7ec613c174dMatthew Swift * Common Development and Distribution License, Version 1.0 only
870930ab008b106540456b3efe47e7ec613c174dMatthew Swift * (the "License"). You may not use this file except in compliance
870930ab008b106540456b3efe47e7ec613c174dMatthew Swift * with the License.
870930ab008b106540456b3efe47e7ec613c174dMatthew Swift * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
870930ab008b106540456b3efe47e7ec613c174dMatthew Swift * or http://forgerock.org/license/CDDLv1.0.html.
870930ab008b106540456b3efe47e7ec613c174dMatthew Swift * See the License for the specific language governing permissions
870930ab008b106540456b3efe47e7ec613c174dMatthew Swift * and limitations under the License.
870930ab008b106540456b3efe47e7ec613c174dMatthew Swift * When distributing Covered Code, include this CDDL HEADER in each
870930ab008b106540456b3efe47e7ec613c174dMatthew Swift * file and include the License file at legal-notices/CDDLv1_0.txt.
870930ab008b106540456b3efe47e7ec613c174dMatthew Swift * If applicable, add the following below this CDDL HEADER, with the
870930ab008b106540456b3efe47e7ec613c174dMatthew Swift * fields enclosed by brackets "[]" replaced with your own identifying
870930ab008b106540456b3efe47e7ec613c174dMatthew Swift * information:
870930ab008b106540456b3efe47e7ec613c174dMatthew Swift * Portions Copyright [yyyy] [name of copyright owner]
870930ab008b106540456b3efe47e7ec613c174dMatthew Swift * CDDL HEADER END
870930ab008b106540456b3efe47e7ec613c174dMatthew Swift * Copyright 2015 ForgeRock AS
870930ab008b106540456b3efe47e7ec613c174dMatthew Swiftimport static org.opends.server.ConfigurationMock.legacyMockCfg;
870930ab008b106540456b3efe47e7ec613c174dMatthew Swiftimport org.opends.server.admin.std.server.JEBackendCfg;
870930ab008b106540456b3efe47e7ec613c174dMatthew Swiftimport org.opends.server.backends.pluggable.PluggableBackendImplTestCase;
870930ab008b106540456b3efe47e7ec613c174dMatthew Swift/** JEBackend Tester. */
870930ab008b106540456b3efe47e7ec613c174dMatthew Swiftpublic class JETestCase extends PluggableBackendImplTestCase<JEBackendCfg>
870930ab008b106540456b3efe47e7ec613c174dMatthew Swift JEBackendCfg backendCfg = legacyMockCfg(JEBackendCfg.class);
760da8c6ac8020e0abc97ab85ad99034d5a87767Matthew Swift when(backendCfg.getBackendId()).thenReturn("JETestCase");
760da8c6ac8020e0abc97ab85ad99034d5a87767Matthew Swift when(backendCfg.getDBDirectory()).thenReturn("JETestCase");
870930ab008b106540456b3efe47e7ec613c174dMatthew Swift when(backendCfg.getDBDirectoryPermissions()).thenReturn("755");
870930ab008b106540456b3efe47e7ec613c174dMatthew Swift when(backendCfg.getDBCacheSize()).thenReturn(0L);
870930ab008b106540456b3efe47e7ec613c174dMatthew Swift when(backendCfg.getDBCachePercent()).thenReturn(20);
870930ab008b106540456b3efe47e7ec613c174dMatthew Swift when(backendCfg.getDBNumCleanerThreads()).thenReturn(2);