Revision 7a96337f
Added by Cherian Mathew over 8 years ago
eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/httpinvoker/CdmRemoteSourceTest.java | ||
---|---|---|
26 | 26 |
public void whenConnectingToInactiveServerThenFailToConnect() { |
27 | 27 |
|
28 | 28 |
// check if non-active server throws the right exception |
29 |
CdmRemoteSource inactiveCrs = CdmRemoteSource.NewInstance(cdmServer.getName(),
|
|
30 |
cdmServer.getHost(),
|
|
29 |
CdmRemoteSource inactiveCrs = CdmRemoteSource.NewInstance(sourceName,
|
|
30 |
host,
|
|
31 | 31 |
808080, |
32 |
cdmServer.getContextPath(),
|
|
32 |
contextPath,
|
|
33 | 33 |
NomenclaturalCode.ICNAFP); |
34 | 34 |
try { |
35 | 35 |
inactiveCrs.getDbSchemaVersion(); |
... | ... | |
68 | 68 |
@Test |
69 | 69 |
public void whenConnectingToAnActiveServerThenConnectSuccessfully() { |
70 | 70 |
// check if active server throws the right exception |
71 |
CdmRemoteSource activeCrs = CdmRemoteSource.NewInstance(cdmServer.getName(),
|
|
72 |
cdmServer.getHost(),
|
|
73 |
cdmServer.getPort(),
|
|
74 |
cdmServer.getContextPath(),
|
|
71 |
CdmRemoteSource activeCrs = CdmRemoteSource.NewInstance(sourceName,
|
|
72 |
host,
|
|
73 |
httpPort,
|
|
74 |
contextPath,
|
|
75 | 75 |
NomenclaturalCode.ICNAFP); |
76 | 76 |
String dbSchemaVersion = ""; |
77 | 77 |
try { |
Also available in: Unified diff
#4073 Add new project for lanuching embedded jetty server using cdmlib webapp
#4073 Add jetty server dependencies
#4073 Add stop start possibility for server
#4073 Add functionality to control managed server in login dialog
#4073 Add start / stop methods for managed server
#4073 Simplify manged server ui
#4073 Fix incorrect stop behaviour, Add mysql jdbc connector jar
#4073 Add webapp to editor project and fix file location issue
#4073 Add error callback for CDM Server start