Project

General

Profile

« Previous | Next » 

Revision 15a62a24

Added by Cherian Mathew over 8 years ago

#4073 Initial implementation of local cdm-server

View differences:

eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/httpinvoker/CdmServerTest.java
27 27

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

  
33
    @Test
34
    public void stopCdmServer() {
30
        CDMServer cdmServer = new CDMServer("cdmTest");
31
        cdmServer .start();
35 32
        try {
36
            CDMServer.getInstance().stop(true);
33
            cdmServer.stop(true);
37 34
        } catch (Exception e) {
38 35
            e.printStackTrace();
39 36
            Assert.fail("Server could not be stopped. Reason : " + e.getMessage());

Also available in: Unified diff