moving tests from cdmlib to the test project
[taxeditor.git] / eu.etaxonomy.taxeditor.test / src / test / java / eu / etaxonomy / taxeditor / httpinvoker / HttpInvokerServicesTest.java
1 /**
2 * Copyright (C) 2014 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
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.
8 */
9 package eu.etaxonomy.taxeditor.httpinvoker;
10
11 import org.apache.log4j.Logger;
12 import org.junit.Assert;
13 import org.junit.Test;
14
15 import eu.etaxonomy.cdm.config.CdmSourceException;
16
17 /**
18 * Class to test the HttpInvoker services exposed by the CDM Sever
19 *
20 */
21 public class HttpInvokerServicesTest extends BaseRemotingTest {
22 private static final Logger logger = Logger.getLogger(HttpInvokerServicesTest.class);
23
24 @Test
25 public void whenCallingMethodsOnRemoteServicesThenSuceed() {
26 try {
27 String dbSchemaVersion = getRemoteApplicationController().getDatabaseService().getDbSchemaVersion();
28 logger.info("dbSchemaVersion is " + dbSchemaVersion);
29 } catch (CdmSourceException e) {
30 Assert.fail("pinging database service on active cdm server should not have thrown CdmSourceException");
31 }
32 }
33
34 }