Class SecurityServiceTest
- java.lang.Object
-
- org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
-
- ubic.gemma.core.util.test.BaseSpringContextTest
-
- ubic.gemma.core.security.authorization.SecurityServiceTest
-
- All Implemented Interfaces:
Aware
,InitializingBean
,ApplicationContextAware
public class SecurityServiceTest extends BaseSpringContextTest
Tests the SecurityService: making objects public or private and testing the permissions.- Author:
- keshav
-
-
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 SecurityServiceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
void
testDuplicateAcesNotAddedOnPrivateExpressionExperiment()
void
testMakeEEGroupReadWrite()
void
testMakeExpressionExperimentPrivate()
void
testMakePrivateWithoutPermission()
void
testRemoveMultipleAcesFromPrivateExpressionExperiment()
void
testSetOwner()
void
testSetPrincipalSID()
void
testUserCanEdit()
void
testUserCanRead()
-
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
-
testDuplicateAcesNotAddedOnPrivateExpressionExperiment
public void testDuplicateAcesNotAddedOnPrivateExpressionExperiment()
-
testMakeEEGroupReadWrite
public void testMakeEEGroupReadWrite()
-
testMakeExpressionExperimentPrivate
public void testMakeExpressionExperimentPrivate()
-
testMakePrivateWithoutPermission
public void testMakePrivateWithoutPermission()
-
testRemoveMultipleAcesFromPrivateExpressionExperiment
public void testRemoveMultipleAcesFromPrivateExpressionExperiment()
-
testSetOwner
public void testSetOwner()
-
testSetPrincipalSID
public void testSetPrincipalSID()
-
testUserCanEdit
public void testUserCanEdit()
-
testUserCanRead
public void testUserCanRead()
-
-