Revision 0fd7ff08
Added by Cherian Mathew almost 9 years ago
eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/httpinvoker/HttpInvokerServicesTest.java | ||
---|---|---|
13 | 13 |
import org.junit.Test; |
14 | 14 |
|
15 | 15 |
import eu.etaxonomy.cdm.config.CdmSourceException; |
16 |
import eu.etaxonomy.cdm.model.description.PolytomousKey; |
|
16 | 17 |
|
17 | 18 |
/** |
18 | 19 |
* Class to test the HttpInvoker services exposed by the CDM Sever |
... | ... | |
26 | 27 |
public void whenCallingMethodsOnRemoteServicesThenSucceed() { |
27 | 28 |
try { |
28 | 29 |
|
29 |
getRemoteApplicationController().getDatabaseService(); |
|
30 |
//getRemoteApplicationController().getDatabaseService();
|
|
30 | 31 |
String dbSchemaVersion = getRemoteApplicationController().getDatabaseService().getDbSchemaVersion(); |
31 | 32 |
logger.info("dbSchemaVersion is " + dbSchemaVersion); |
33 |
|
|
34 |
|
|
32 | 35 |
} catch (CdmSourceException e) { |
33 | 36 |
Assert.fail("pinging database service on active cdm server should not have thrown CdmSourceException"); |
34 | 37 |
} |
38 |
|
|
39 |
getRemoteApplicationController().getPolytomousKeyService().list(PolytomousKey.class, null, null, null, null); |
|
35 | 40 |
} |
36 | 41 |
|
37 | 42 |
} |
Also available in: Unified diff
CdmRemoteSourceBase : using user service for db checks
httpInvokerServiceClients.xml : updated database service config
HttpInvokerServicesTest : added polytomous key service ping
server.properties : added back server properties file