Project

General

Profile

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