86ebe8b0daaffe0629ed957fff5f49d33676d6cc
2 * Copyright (C) 2014 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
9 package eu
.etaxonomy
.taxeditor
.httpinvoker
;
11 import org
.apache
.log4j
.Level
;
12 import org
.apache
.log4j
.Logger
;
13 import org
.junit
.Assert
;
14 import org
.junit
.BeforeClass
;
15 import org
.junit
.Test
;
17 import eu
.etaxonomy
.cdm
.config
.CdmSourceException
;
20 * Class to test the HttpInvoker services exposed by the CDM Sever
23 public class HttpInvokerServicesTest
extends BaseRemotingTest
{
24 private static final Logger logger
= Logger
.getLogger(HttpInvokerServicesTest
.class);
27 public static void initializeHttpInvokerServicesTest() {
28 logger
.setLevel(Level
.INFO
);
29 //initializeController("default", "127.0.0.1", 8080, "", NomenclaturalCode.ICNAFP);
33 public void whenCallingMethodsOnRemoteServicesThenSucceed() {
36 getRemoteApplicationController().getDatabaseService();
37 String dbSchemaVersion
= getRemoteApplicationController().getDatabaseService().getDbSchemaVersion();
38 logger
.info("dbSchemaVersion is " + dbSchemaVersion
);
39 } catch (CdmSourceException e
) {
40 Assert
.fail("pinging database service on active cdm server should not have thrown CdmSourceException");