3 * Copyright (C) 2014 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.taxeditor
.httpinvoker
;
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
;
19 import eu
.etaxonomy
.taxeditor
.lazyloading
.AbstractLazyInitializerTest
;
26 public class CdmServerTest
extends UnitilsJUnit4
{
27 private static final Logger logger
= Logger
.getLogger(CdmServerTest
.class);
31 public void stopCdmServer() {
32 Logger
.getRootLogger().setLevel(Level
.INFO
);
33 CDMServer
.getInstance().setKeepServerRunning(false);
35 CDMServer
.getInstance().stop(true);
36 } catch (Exception e
) {
37 Assert
.fail("Server could not be stopped. Reason : " + e
.getMessage());