ref #6241 change @date to @since
[cdmlib.git] / cdmlib-services / src / main / java / eu / etaxonomy / cdm / api / service / ITestService.java
1 /**
2 * Copyright (C) 2015 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
8 */
9 package eu.etaxonomy.cdm.api.service;
10
11 import java.util.List;
12 import java.util.UUID;
13
14 import eu.etaxonomy.cdm.api.service.dto.CdmEntityIdentifier;
15 import eu.etaxonomy.cdm.common.monitor.IRemotingProgressMonitor;
16
17 /**
18 * Service interface for the testing of client applications using the service
19 * layer remotely (like the Taxonomic Editor)
20 *
21 * @author cmathew
22 \* @since 26 Jun 2015
23 *
24 */
25 public interface ITestService {
26
27
28 public void waitFor(long timeToWaitInMs) throws InterruptedException ;
29
30 public UpdateResult returnResult(UpdateResult result);
31
32 public UpdateResult throwException(Exception ex);
33
34 public UpdateResult addChild(CdmEntityIdentifier taxonNodeCei);
35
36
37 /**
38 * @param monitor
39 * @return
40 */
41 public String longRunningMethod(IRemotingProgressMonitor monitor, RuntimeException ex, List<String> feedbacks, long feedbackWaitTimeout);
42
43
44 /**
45 * @return
46 */
47 public UUID monitLongRunningMethod(RuntimeException ex, List<String> feedbacks, long feedbackWaitTimeout);
48
49
50
51
52
53 }