From 1d44fe6b0682ba0af66edd3cbef275e5f09ccdea Mon Sep 17 00:00:00 2001 From: felmer <felmer> Date: Tue, 15 Jan 2013 08:34:13 +0000 Subject: [PATCH] SP-439 BIS-255: unit tests fixed SVN: 28097 --- .../dss/screening/server/DssServiceRpcScreeningTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/screening/sourceTest/java/ch/systemsx/cisd/openbis/dss/screening/server/DssServiceRpcScreeningTest.java b/screening/sourceTest/java/ch/systemsx/cisd/openbis/dss/screening/server/DssServiceRpcScreeningTest.java index e88cabc523c..3ff3ccfa657 100644 --- a/screening/sourceTest/java/ch/systemsx/cisd/openbis/dss/screening/server/DssServiceRpcScreeningTest.java +++ b/screening/sourceTest/java/ch/systemsx/cisd/openbis/dss/screening/server/DssServiceRpcScreeningTest.java @@ -47,6 +47,7 @@ import ch.systemsx.cisd.base.mdarray.MDFloatArray; import ch.systemsx.cisd.common.exceptions.AuthorizationFailureException; import ch.systemsx.cisd.common.exceptions.UserFailureException; import ch.systemsx.cisd.common.io.ConcatenatedFileOutputStreamWriter; +import ch.systemsx.cisd.common.server.ISessionTokenProvider; import ch.systemsx.cisd.hcs.Location; import ch.systemsx.cisd.openbis.common.io.ByteArrayBasedContentNode; import ch.systemsx.cisd.openbis.common.io.FileBasedContentNode; @@ -207,6 +208,8 @@ public class DssServiceRpcScreeningTest extends AssertJUnit will(returnValue(imageParameters)); allowing(contentProvider).asContent(with(any(String.class))); will(returnValue(null)); + allowing(contentProvider).cloneFor(with(any(ISessionTokenProvider.class))); + will(returnValue(contentProvider)); } }); testMethodInterceptor = new TestMethodInterceptor(shareIdManager); -- GitLab