Class SingleExperimentAnalysisTest
java.lang.Object
ubic.gemma.model.analysis.SingleExperimentAnalysisTest
Unit tests for
SingleExperimentAnalysis.getSecurityOwner(), the hook the ACL machinery
consults to decide which ACL an analysis inherits.
The proxy case is the one that matters, and it is the one that fails quietly.
experimentAnalyzed is mapped with targetEntity = BioAssaySet.class, so Hibernate
hands back a BioAssaySet$HibernateProxy — an instance of neither concrete subclass, which
fell through to return null. A null owner makes
AclEventListener.resolveParentAcl give the analysis its own ROOT ACL instead of one
inheriting from the experiment, so the analysis ends up with the wrong visibility and nothing
throws.
- Author:
- claude
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoid
-
Constructor Details
-
SingleExperimentAnalysisTest
public SingleExperimentAnalysisTest()
-
-
Method Details
-
initializedExperiment_isItsOwnSecurityOwner
@Test public void initializedExperiment_isItsOwnSecurityOwner() -
lazyProxiedExperiment_resolvesRatherThanReturningNull
@Test public void lazyProxiedExperiment_resolvesRatherThanReturningNull() -
initializedSubset_isOwnedByItsSourceExperiment
@Test public void initializedSubset_isOwnedByItsSourceExperiment() -
lazyProxiedSubset_isOwnedByItsSourceExperiment
@Test public void lazyProxiedSubset_isOwnedByItsSourceExperiment() -
noExperimentAnalyzed_hasNoSecurityOwner
@Test public void noExperimentAnalyzed_hasNoSecurityOwner()
-