Project

General

Profile

Download (1.05 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.Logger;
13
import org.junit.Assert;
14
import org.junit.Test;
15
import org.unitils.UnitilsJUnit4;
16

    
17
import eu.etaxonomy.taxeditor.remoting.server.CDMServerException;
18

    
19
/**
20
 * @author cmathew
21
 * @date 6 Oct 2014
22
 *
23
 */
24
public class CdmServerTest extends UnitilsJUnit4 {
25
    private static final Logger logger = Logger.getLogger(CdmServerTest.class);
26

    
27

    
28
    @Test
29
    public void startCdmServer() throws CDMServerException {
30
        CDMServer.getInstance().start();
31
    }
32

    
33
    @Test
34
    public void stopCdmServer() {
35
        try {
36
            CDMServer.getInstance().stop(true);
37
        } catch (Exception e) {
38
            e.printStackTrace();
39
            Assert.fail("Server could not be stopped. Reason : " + e.getMessage());
40
        }
41
    }
42

    
43
}
(5-5/7)