Project

General

Profile

Download (1.26 KB) Statistics
| Branch: | Tag: | Revision:
1 933331e0 Cherian Mathew
/**
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 eeedb131 Cherian Mathew
import java.util.List;
12 3087df1b Cherian Mathew
import java.util.UUID;
13
14 3fda6c39 Cherian Mathew
import eu.etaxonomy.cdm.api.service.dto.CdmEntityIdentifier;
15 3087df1b Cherian Mathew
import eu.etaxonomy.cdm.common.monitor.IRemotingProgressMonitor;
16 3fda6c39 Cherian Mathew
17 933331e0 Cherian Mathew
/**
18
 * Service interface for the testing of client applications using the service
19
 * layer remotely (like the Taxonomic Editor)
20
 *
21
 * @author cmathew
22 53db84af Andreas Müller
 * @since 26 Jun 2015
23 933331e0 Cherian Mathew
 *
24
 */
25
public interface ITestService {
26
27
28 3fda6c39 Cherian Mathew
    public void waitFor(long timeToWaitInMs) throws InterruptedException ;
29 933331e0 Cherian Mathew
30 610855da Cherian Mathew
    public UpdateResult returnResult(UpdateResult result);
31
32
    public UpdateResult throwException(Exception ex);
33
34 3fda6c39 Cherian Mathew
    public UpdateResult addChild(CdmEntityIdentifier taxonNodeCei);
35
36 3087df1b Cherian Mathew
37
    /**
38
     * @param monitor
39
     * @return
40
     */
41 ac7c4c35 Cherian Mathew
    public String longRunningMethod(IRemotingProgressMonitor monitor, RuntimeException ex, List<String> feedbacks, long feedbackWaitTimeout);
42 3087df1b Cherian Mathew
43
44
    /**
45
     * @return
46
     */
47 ac7c4c35 Cherian Mathew
    public UUID monitLongRunningMethod(RuntimeException ex, List<String> feedbacks, long feedbackWaitTimeout);
48 3087df1b Cherian Mathew
49
50
51
52
53 933331e0 Cherian Mathew
}