3 * Copyright (C) 2015 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.cdm
.api
.service
;
12 import java
.util
.List
;
13 import java
.util
.UUID
;
15 import eu
.etaxonomy
.cdm
.api
.service
.dto
.CdmEntityIdentifier
;
16 import eu
.etaxonomy
.cdm
.common
.monitor
.IRemotingProgressMonitor
;
19 * Service interface for the testing of client applications using the service
20 * layer remotely (like the Taxonomic Editor)
26 public interface ITestService
{
29 public void waitFor(long timeToWaitInMs
) throws InterruptedException
;
31 public UpdateResult
returnResult(UpdateResult result
);
33 public UpdateResult
throwException(Exception ex
);
35 public UpdateResult
addChild(CdmEntityIdentifier taxonNodeCei
);
42 public String
longRunningMethod(IRemotingProgressMonitor monitor
, RuntimeException ex
, List
<String
> feedbacks
, long feedbackWaitTimeout
);
48 public UUID
monitLongRunningMethod(RuntimeException ex
, List
<String
> feedbacks
, long feedbackWaitTimeout
);