Revision 95b6f6f5
Added by Cherian Mathew almost 9 years ago
eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/application/CdmApplicationRemoteControllerTest.java | ||
---|---|---|
1 | 1 |
// $Id$ |
2 | 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 |
*/ |
|
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 | 10 |
package eu.etaxonomy.taxeditor.application; |
11 | 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 |
|
|
12 | 20 |
/** |
13 | 21 |
* @author cmathew |
14 | 22 |
* @date 26 May 2015 |
15 | 23 |
* |
16 | 24 |
*/ |
17 |
public class CdmApplicationRemoteControllerTest { |
|
18 |
|
|
19 |
|
|
25 |
public class CdmApplicationRemoteControllerTest extends UnitilsJUnit4 { |
|
20 | 26 |
|
21 | 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 |
} |
|
22 | 41 |
} |
Also available in: Unified diff
CdmApplicationRemoteController : refactoring code to simplify application context loading and making it performant
CdmModelCacher : removed unused method
CdmRemoteCacheManager : moved cache from disk to memory
httpInvokerServiceClients : lazy initializing all service beans
remotingApplicationContext : merged imported bean definition files into this one
CdmApplicationRemoteControllerTest : test for application controller
RemotingMonitoredGenericApplicationContext, RemotingMonitoredListableBeanFactory : removed since specific monitoring is not required in remoting
remoting_persistence_security.xml, remoting_services_security.xml : merged into remotingApplicationContext