@@ -0,0 +1,1901 @@
+/*%0A * Copyright 2012 Brian Thomas Matthews%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.btmatthews.maven.plugins.ldap.unboundid;%0A%0Aimport static org.mockito.Mockito.verify;%0Aimport static org.mockito.MockitoAnnotations.initMocks;%0A%0Aimport com.btmatthews.utils.monitor.Logger;%0Aimport org.junit.Before;%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0Aimport org.junit.rules.TemporaryFolder;%0Aimport org.mockito.Mock;%0A%0A/**%0A * @author %3Ca href=%22mailto:brian@btmatthews.com%22%3EBrian Matthews%3C/a%3E%0A * @since 1.1.1%0A */%0Apublic class TestUnboundIDServer %7B%0A%0A    private UnboundIDServer server;%0A%0A    @Mock%0A    private Logger logger;%0A%0A    @Rule%0A    public TemporaryFolder folder = new TemporaryFolder();%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        initMocks(this);%0A        server = new UnboundIDServer();%0A        server.configure(%22root%22, %22dc=btmatthews,dc=com%22, logger);%0A        server.configure(%22ldapPort%22, Integer.valueOf(10389), logger);%0A        server.configure(%22workingDirectory%22, folder.newFolder(), logger);%0A    %7D%0A%0A    @Test%0A    public void testRunStop() %7B%0A        server.start(logger);%0A        verify(logger).logInfo(%22Starting UnboundID server%22);%0A        verify(logger).logInfo(%22Started UnboundID server%22);%0A        server.stop(logger);%0A        verify(logger).logInfo(%22Stopping UnboundID server%22);%0A        verify(logger).logInfo(%22Stopped UnboundID server%22);%0A    %7D%0A%7D%0A

Support for UnboundID server