corrected remote source to use initialzed cdm server
authorCherian Mathew <c.mathew@bgbm.org>
Thu, 18 Jun 2015 11:55:34 +0000 (13:55 +0200)
committerCherian Mathew <c.mathew@bgbm.org>
Thu, 18 Jun 2015 11:55:34 +0000 (13:55 +0200)
eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/application/CdmApplicationRemoteControllerTest.java

index 7bf2a1da813475e809ddd4f10fe514ee34bc49f8..bfd10cfa4ef3aedf56f40ddfa2bbe03e4107f6f0 100644 (file)
 package eu.etaxonomy.taxeditor.application;
 
 import org.junit.Test;
-import org.unitils.UnitilsJUnit4;
 
 import eu.etaxonomy.cdm.api.application.CdmApplicationRemoteController;
 import eu.etaxonomy.cdm.common.monitor.NullProgressMonitor;
 import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
+import eu.etaxonomy.taxeditor.httpinvoker.BaseRemotingTest;
+import eu.etaxonomy.taxeditor.httpinvoker.CDMServer;
 import eu.etaxonomy.taxeditor.remoting.source.CdmRemoteSource;
 
 /**
@@ -22,15 +23,15 @@ import eu.etaxonomy.taxeditor.remoting.source.CdmRemoteSource;
  * @date 26 May 2015
  *
  */
-public class CdmApplicationRemoteControllerTest extends UnitilsJUnit4 {
+public class CdmApplicationRemoteControllerTest extends BaseRemotingTest {
 
 
     @Test
     public void initApplicationControllerTest() {
-        CdmRemoteSource crs = CdmRemoteSource.NewInstance("local-cyprus",
-                "localhost",
-                8080,
-                "",
+        CdmRemoteSource crs = CdmRemoteSource.NewInstance(CDMServer.getInstance().getName(),
+                CDMServer.getInstance().getHost(),
+                CDMServer.getInstance().getPort(),
+                CDMServer.getInstance().getContextPath(),
                 NomenclaturalCode.ICNAFP);
         // first initialize with validation to make sure the xml is valid
         CdmApplicationRemoteController.NewInstance(crs,