From 3a8512bb798c63bfafac9f15fe026de06762bac4 Mon Sep 17 00:00:00 2001 From: izabel <izabel> Date: Thu, 28 Oct 2010 13:39:40 +0000 Subject: [PATCH] fix restrictions SVN: 18477 --- .../openbis/generic/server/business/bo/AbstractBOTest.java | 2 ++ .../cisd/openbis/generic/server/business/bo/ScriptBOTest.java | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/server/business/bo/AbstractBOTest.java b/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/server/business/bo/AbstractBOTest.java index d6fab6a8a61..0567816975d 100644 --- a/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/server/business/bo/AbstractBOTest.java +++ b/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/server/business/bo/AbstractBOTest.java @@ -22,6 +22,7 @@ import org.testng.AssertJUnit; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod; +import ch.rinn.restrictions.Friend; import ch.systemsx.cisd.openbis.generic.server.business.bo.ScriptBO.IScriptFactory; import ch.systemsx.cisd.openbis.generic.server.dataaccess.IAuthorizationGroupDAO; import ch.systemsx.cisd.openbis.generic.server.dataaccess.IDAOFactory; @@ -55,6 +56,7 @@ import ch.systemsx.cisd.openbis.generic.shared.dto.DatabaseInstancePE; * * @author Christian Ribeaud */ +@Friend(toClasses = ScriptBO.IScriptFactory.class) public abstract class AbstractBOTest extends AssertJUnit { Mockery context; diff --git a/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/server/business/bo/ScriptBOTest.java b/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/server/business/bo/ScriptBOTest.java index cc22492e321..77215659869 100644 --- a/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/server/business/bo/ScriptBOTest.java +++ b/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/server/business/bo/ScriptBOTest.java @@ -37,7 +37,8 @@ import ch.systemsx.cisd.openbis.generic.shared.dto.properties.EntityKind; * * @author Izabela Adamczyk */ -@Friend(toClasses = ScriptBO.class) +@Friend(toClasses = + { ScriptBO.class, ScriptBO.IScriptFactory.class, ScriptPE.class }) public final class ScriptBOTest extends AbstractBOTest { private static final String SCRIPT = "1+1"; -- GitLab