7bf2a1da813475e809ddd4f10fe514ee34bc49f8
[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 import org.unitils.UnitilsJUnit4;
14
15 import eu.etaxonomy.cdm.api.application.CdmApplicationRemoteController;
16 import eu.etaxonomy.cdm.common.monitor.NullProgressMonitor;
17 import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
18 import eu.etaxonomy.taxeditor.remoting.source.CdmRemoteSource;
19
20 /**
21 * @author cmathew
22 * @date 26 May 2015
23 *
24 */
25 public class CdmApplicationRemoteControllerTest extends UnitilsJUnit4 {
26
27
28 @Test
29 public void initApplicationControllerTest() {
30 CdmRemoteSource crs = CdmRemoteSource.NewInstance("local-cyprus",
31 "localhost",
32 8080,
33 "",
34 NomenclaturalCode.ICNAFP);
35 // first initialize with validation to make sure the xml is valid
36 CdmApplicationRemoteController.NewInstance(crs,
37 true,
38 new NullProgressMonitor(),
39 null);
40 }
41 }