Package ubic.gemma.persistence.util
Class AclQueryUtilsTest
- java.lang.Object
-
- org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
-
- ubic.gemma.core.util.test.BaseSpringContextTest
-
- ubic.gemma.persistence.util.AclQueryUtilsTest
-
- All Implemented Interfaces:
Aware
,InitializingBean
,ApplicationContextAware
public class AclQueryUtilsTest extends BaseSpringContextTest
-
-
Field Summary
-
Fields inherited from class ubic.gemma.core.util.test.BaseSpringContextTest
externalDatabaseService, jdbcTemplate, log, persisterHelper, rule, taxonService, testHelper
-
Fields inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
applicationContext, logger
-
-
Constructor Summary
Constructors Constructor Description AclQueryUtilsTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
void
tearDown()
void
testAddAclJoinParameters()
void
testAsAdmin()
void
testAsAnonymous()
void
testAsUser()
void
testFormAclJoinClauseAsAdmin()
void
testFormAclJoinClauseAsNonAdminIncludesAoiEntriesInnerJointure()
void
testFormNativeAclJoinClause()
void
testFormNativeAclJoinClauseAsAnonymous()
void
testFormNativeRestrictionClause()
void
testFormNativeRestrictionClauseAsAnonymous()
void
testNative()
void
testNativeAsAnonymous()
void
testNativeAsUser()
void
testSecurableEntitiesNamesAreUnchanged()
Since ACL relies on the class name, and these class names are stored in the database, we must ensure that they are never changed.-
Methods inherited from class ubic.gemma.core.util.test.BaseSpringContextTest
addTestAnalyses, afterPropertiesSet, countRowsInTable, deleteFromTables, executeSqlScript, getNewTestPersistentCompleteExpressionExperiment, getTaxon, getTestNonPersistentBioSequence, getTestPersistentArrayDesign, getTestPersistentArrayDesign, getTestPersistentArrayDesign, getTestPersistentBasicExpressionExperiment, getTestPersistentBasicExpressionExperiment, getTestPersistentBibliographicReference, getTestPersistentBioAssay, getTestPersistentBioAssay, getTestPersistentBioMaterial, getTestPersistentBioMaterial, getTestPersistentBioSequence, getTestPersistentBioSequence, getTestPersistentBioSequence2GeneProducts, getTestPersistentBlatResult, getTestPersistentBlatResult, getTestPersistentCompleteExpressionExperiment, getTestPersistentCompleteExpressionExperimentWithSequences, getTestPersistentCompleteExpressionExperimentWithSequences, getTestPersistentContact, getTestPersistentDatabaseEntry, getTestPersistentDatabaseEntry, getTestPersistentDatabaseEntry, getTestPersistentDatabaseEntry, getTestPersistentDatabaseEntry, getTestPersistentExpressionExperiment, getTestPersistentExpressionExperiment, getTestPersistentGene, getTestPersistentGene, getTestPersistentGeneProduct, getTestPersistentQuantitationType, randomName, resetTestCollectionSize, runAsAdmin, runAsAgent, runAsAnonymous, runAsUser, runAsUser, setPersisterHelper, setTaxonService, setTestCollectionSize, setUpAuthentication, setUpSecurityContextHolderStrategy, tearDownSecurityContext
-
Methods inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
setApplicationContext
-
-
-
-
Method Detail
-
setUp
public void setUp()
-
tearDown
public void tearDown()
-
testSecurableEntitiesNamesAreUnchanged
public void testSecurableEntitiesNamesAreUnchanged()
Since ACL relies on the class name, and these class names are stored in the database, we must ensure that they are never changed.
-
testFormAclJoinClauseAsAdmin
public void testFormAclJoinClauseAsAdmin()
-
testFormAclJoinClauseAsNonAdminIncludesAoiEntriesInnerJointure
public void testFormAclJoinClauseAsNonAdminIncludesAoiEntriesInnerJointure()
-
testAddAclJoinParameters
public void testAddAclJoinParameters()
-
testFormNativeAclJoinClause
public void testFormNativeAclJoinClause()
-
testFormNativeAclJoinClauseAsAnonymous
public void testFormNativeAclJoinClauseAsAnonymous()
-
testFormNativeRestrictionClause
public void testFormNativeRestrictionClause()
-
testFormNativeRestrictionClauseAsAnonymous
public void testFormNativeRestrictionClauseAsAnonymous()
-
testAsAdmin
public void testAsAdmin()
-
testAsUser
public void testAsUser()
-
testAsAnonymous
public void testAsAnonymous()
-
testNative
public void testNative()
-
testNativeAsUser
public void testNativeAsUser()
-
testNativeAsAnonymous
public void testNativeAsAnonymous()
-
-