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 d6fab6a8a617bc7e84775cf18125b159746f4784..0567816975d7c77d12952d7507f8c650c738df19 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 cc22492e3211f413831f478b4ee9a88b4fc12aca..77215659869d95946e51d01fb568cd5632f6f905 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";