merge from trunk
[taxeditor.git] / eu.etaxonomy.taxeditor.remoting / src / test / java / eu / etaxonomy / taxeditor / httpinvoker / CdmServerTest.java
1 // $Id$
2 /**
3 * Copyright (C) 2014 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10 package eu.etaxonomy.taxeditor.httpinvoker;
11
12 import org.apache.log4j.Level;
13 import org.apache.log4j.Logger;
14 import org.junit.Assert;
15 import org.junit.Ignore;
16 import org.junit.Test;
17 import org.unitils.UnitilsJUnit4;
18
19 import eu.etaxonomy.taxeditor.lazyloading.AbstractLazyInitializerTest;
20
21 /**
22 * @author cmathew
23 * @date 6 Oct 2014
24 *
25 */
26 public class CdmServerTest extends UnitilsJUnit4 {
27 private static final Logger logger = Logger.getLogger(CdmServerTest.class);
28
29
30 @Test
31 public void stopCdmServer() {
32 Logger.getRootLogger().setLevel(Level.INFO);
33 CDMServer.getInstance().setKeepServerRunning(false);
34 try {
35 CDMServer.getInstance().stop(true);
36 } catch (Exception e) {
37 Assert.fail("Server could not be stopped. Reason : " + e.getMessage());
38 }
39 }
40
41 }