2 * Copyright (C) 2015 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
9 package eu
.etaxonomy
.cdm
.api
.service
;
11 import java
.util
.List
;
12 import java
.util
.UUID
;
14 import eu
.etaxonomy
.cdm
.api
.service
.dto
.CdmEntityIdentifier
;
15 import eu
.etaxonomy
.cdm
.common
.monitor
.IRemotingProgressMonitor
;
18 * Service interface for the testing of client applications using the service
19 * layer remotely (like the Taxonomic Editor)
25 public interface ITestService
{
28 public void waitFor(long timeToWaitInMs
) throws InterruptedException
;
30 public UpdateResult
returnResult(UpdateResult result
);
32 public UpdateResult
throwException(Exception ex
);
34 public UpdateResult
addChild(CdmEntityIdentifier taxonNodeCei
);
41 public String
longRunningMethod(IRemotingProgressMonitor monitor
, RuntimeException ex
, List
<String
> feedbacks
, long feedbackWaitTimeout
);
47 public UUID
monitLongRunningMethod(RuntimeException ex
, List
<String
> feedbacks
, long feedbackWaitTimeout
);