bfd10cfa4ef3aedf56f40ddfa2bbe03e4107f6f0
[taxeditor.git] / eu.etaxonomy.taxeditor.test / src / test / java / eu / etaxonomy / taxeditor / application / CdmApplicationRemoteControllerTest.java
1 // $Id$
2 /**
3 * Copyright (C) 2015 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10 package eu.etaxonomy.taxeditor.application;
11
12 import org.junit.Test;
13
14 import eu.etaxonomy.cdm.api.application.CdmApplicationRemoteController;
15 import eu.etaxonomy.cdm.common.monitor.NullProgressMonitor;
16 import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
17 import eu.etaxonomy.taxeditor.httpinvoker.BaseRemotingTest;
18 import eu.etaxonomy.taxeditor.httpinvoker.CDMServer;
19 import eu.etaxonomy.taxeditor.remoting.source.CdmRemoteSource;
20
21 /**
22 * @author cmathew
23 * @date 26 May 2015
24 *
25 */
26 public class CdmApplicationRemoteControllerTest extends BaseRemotingTest {
27
28
29 @Test
30 public void initApplicationControllerTest() {
31 CdmRemoteSource crs = CdmRemoteSource.NewInstance(CDMServer.getInstance().getName(),
32 CDMServer.getInstance().getHost(),
33 CDMServer.getInstance().getPort(),
34 CDMServer.getInstance().getContextPath(),
35 NomenclaturalCode.ICNAFP);
36 // first initialize with validation to make sure the xml is valid
37 CdmApplicationRemoteController.NewInstance(crs,
38 true,
39 new NullProgressMonitor(),
40 null);
41 }
42 }