Package ubic.gemma.core.security.audit
Class AuditAdviceTest
- java.lang.Object
-
- org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
-
- ubic.gemma.core.util.test.BaseSpringContextTest
-
- ubic.gemma.core.security.audit.AuditAdviceTest
-
- All Implemented Interfaces:
Aware
,InitializingBean
,ApplicationContextAware
public class AuditAdviceTest extends BaseSpringContextTest
Test of adding audit events when objects are created, updated or deleted. Note: this test used to use genes, but we removed auditability from genes.- Author:
- pavlidis
-
-
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 AuditAdviceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testAuditCreateAndDeleteExpressionExperiment()
void
testAuditFindOrCreateConcurrentTorture()
void
testCascadingCreateOnUpdate()
void
testCascadingCreateWithAssociatedAuditable()
void
testSimpleAuditFindOrCreate()
-
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
-
testAuditCreateAndDeleteExpressionExperiment
public void testAuditCreateAndDeleteExpressionExperiment()
-
testCascadingCreateOnUpdate
public void testCascadingCreateOnUpdate()
-
testCascadingCreateWithAssociatedAuditable
public void testCascadingCreateWithAssociatedAuditable()
-
testSimpleAuditFindOrCreate
public void testSimpleAuditFindOrCreate()
-
testAuditFindOrCreateConcurrentTorture
public void testAuditFindOrCreateConcurrentTorture()
-
-