Revision 15a62a24
Added by Cherian Mathew over 8 years ago
eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/httpinvoker/CdmRemoteSourceTest.java | ||
---|---|---|
24 | 24 |
|
25 | 25 |
@Test |
26 | 26 |
public void whenConnectingToInactiveServerThenFailToConnect() { |
27 |
|
|
27 | 28 |
// check if non-active server throws the right exception |
28 |
CdmRemoteSource inactiveCrs = CdmRemoteSource.NewInstance(CDMServer.getInstance().getName(),
|
|
29 |
CDMServer.getInstance().getHost(),
|
|
29 |
CdmRemoteSource inactiveCrs = CdmRemoteSource.NewInstance(cdmServer.getName(),
|
|
30 |
cdmServer.getHost(),
|
|
30 | 31 |
808080, |
31 |
CDMServer.getInstance().getContextPath(),
|
|
32 |
cdmServer.getContextPath(),
|
|
32 | 33 |
NomenclaturalCode.ICNAFP); |
33 | 34 |
try { |
34 | 35 |
inactiveCrs.getDbSchemaVersion(); |
... | ... | |
67 | 68 |
@Test |
68 | 69 |
public void whenConnectingToAnActiveServerThenConnectSuccessfully() { |
69 | 70 |
// check if active server throws the right exception |
70 |
CdmRemoteSource activeCrs = CdmRemoteSource.NewInstance(CDMServer.getInstance().getName(),
|
|
71 |
CDMServer.getInstance().getHost(),
|
|
72 |
CDMServer.getInstance().getPort(),
|
|
73 |
CDMServer.getInstance().getContextPath(),
|
|
71 |
CdmRemoteSource activeCrs = CdmRemoteSource.NewInstance(cdmServer.getName(),
|
|
72 |
cdmServer.getHost(),
|
|
73 |
cdmServer.getPort(),
|
|
74 |
cdmServer.getContextPath(),
|
|
74 | 75 |
NomenclaturalCode.ICNAFP); |
75 | 76 |
String dbSchemaVersion = ""; |
76 | 77 |
try { |
Also available in: Unified diff
#4073 Initial implementation of local cdm-server