Project

General

Profile

Download (1.03 KB) Statistics
| Branch: | Tag: | Revision:
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 CdmServerTestManager extends UnitilsJUnit4 {
27
    private static final Logger logger = Logger.getLogger(CdmServerTestManager.class);
28

    
29

    
30
    @Test
31
    public void stopCdmServer() {
32
        Logger.getRootLogger().setLevel(Level.INFO);
33
        
34
        try {
35
            CDMServer.getInstance().stop();
36
        } catch (Exception e) {
37
            Assert.fail("Server could not be stopped. Reason : " + e.getMessage());
38
        }
39
    }
40

    
41
}
(6-6/7)