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 org
.springframework
.stereotype
.Service
;
20 public class TestServiceImpl
implements ITestService
{
23 * @see eu.etaxonomy.cdm.api.service.ITestService#wait(int)
26 public void waitFor(long timeToWaitInMs
) throws InterruptedException
{
27 Thread
.sleep(timeToWaitInMs
);
31 * @see eu.etaxonomy.cdm.api.service.ITestService#returnResult(eu.etaxonomy.cdm.api.service.UpdateResult)
34 public UpdateResult
returnResult(UpdateResult result
) {
39 * @see eu.etaxonomy.cdm.api.service.ITestService#throwException(java.lang.Exception)
42 public UpdateResult
throwException(Exception ex
) {
43 throw new RuntimeException(ex
);