Project

General

Profile

Download (1.17 KB) Statistics
| Branch: | Tag: | Revision:
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
public interface ITestService {
25

    
26
    public void waitFor(long timeToWaitInMs) throws InterruptedException ;
27

    
28
    public UpdateResult returnResult(UpdateResult result);
29

    
30
    public UpdateResult throwException(Exception ex);
31

    
32
    public UpdateResult addChild(CdmEntityIdentifier taxonNodeCei);
33

    
34
    public String longRunningMethod(IRemotingProgressMonitor monitor, RuntimeException ex, List<String> feedbacks, long feedbackWaitTimeout);
35

    
36
    public UUID monitLongRunningMethod(RuntimeException ex, List<String> feedbacks, long feedbackWaitTimeout);
37

    
38
}
(60-60/95)