#5297 Make result, feedback objects in remoting monitor serializable, Update test...
[cdmlib.git] / cdmlib-services / src / main / java / eu / etaxonomy / cdm / api / service / ITestService.java
index 197c0fa1ffe2c3d77dc05ac851fc501450569d89..893e35fd9825aae6a58fae6b739461f353f7295b 100644 (file)
@@ -9,6 +9,12 @@
 */
 package eu.etaxonomy.cdm.api.service;
 
+import java.util.List;
+import java.util.UUID;
+
+import eu.etaxonomy.cdm.api.service.dto.CdmEntityIdentifier;
+import eu.etaxonomy.cdm.common.monitor.IRemotingProgressMonitor;
+
 /**
  * Service interface for the testing of client applications using the service
  * layer remotely (like the Taxonomic Editor)
@@ -20,10 +26,29 @@ package eu.etaxonomy.cdm.api.service;
 public interface ITestService {
 
 
-    public  void waitFor(long timeToWaitInMs) throws InterruptedException ;
+    public void waitFor(long timeToWaitInMs) throws InterruptedException ;
 
     public UpdateResult returnResult(UpdateResult result);
 
     public UpdateResult throwException(Exception ex);
 
+    public UpdateResult addChild(CdmEntityIdentifier taxonNodeCei);
+
+
+    /**
+     * @param monitor
+     * @return
+     */
+    public String longRunningMethod(IRemotingProgressMonitor monitor, RuntimeException ex, List<String> feedbacks);
+
+
+    /**
+     * @return
+     */
+    public UUID monitLongRunningMethod(RuntimeException ex, List<String> feedbacks);
+
+
+
+
+
 }