Package ubic.gemma.persistence.retry
Class RetryTest
- java.lang.Object
-
- org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
-
- ubic.gemma.core.util.test.BaseIntegrationTest
-
- ubic.gemma.core.util.test.BaseSpringContextTest
-
- ubic.gemma.persistence.retry.RetryTest
-
- All Implemented Interfaces:
Aware
,InitializingBean
,ApplicationContextAware
public class RetryTest extends BaseSpringContextTest implements InitializingBean
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
RetryTest.TestRetryDao
static class
RetryTest.TestRetryService
-
Field Summary
Fields Modifier and Type Field Description org.springframework.retry.policy.SimpleRetryPolicy
retryPolicy
-
Fields inherited from class ubic.gemma.core.util.test.BaseSpringContextTest
externalDatabaseService, log, persisterHelper, rule, taxonService, testHelper
-
Fields inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
applicationContext, logger
-
-
Constructor Summary
Constructors Constructor Description RetryTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
void
tearDown()
void
testRetry()
void
testRetryNonTransactionalOperation()
void
testRetryTransactionalOperation()
void
testRetryWhenNoExceptionIsRaised()
void
testRetryWithNonRetryableException()
void
testRetryWithRetryableExceptionInCause()
-
Methods inherited from class ubic.gemma.core.util.test.BaseSpringContextTest
addTestAnalyses, countRowsInTable, deleteFromTables, getJdbcTemplate, 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, setTestCollectionSize
-
Methods inherited from class ubic.gemma.core.util.test.BaseIntegrationTest
setUpAuthentication, tearDownSecurityContext
-
Methods inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
setApplicationContext
-
-
-
-
Field Detail
-
retryPolicy
@Autowired public org.springframework.retry.policy.SimpleRetryPolicy retryPolicy
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interfaceInitializingBean
-
tearDown
public void tearDown()
-
testRetry
public void testRetry()
-
testRetryWithRetryableExceptionInCause
public void testRetryWithRetryableExceptionInCause()
-
testRetryWhenNoExceptionIsRaised
public void testRetryWhenNoExceptionIsRaised()
-
testRetryWithNonRetryableException
public void testRetryWithNonRetryableException()
-
testRetryTransactionalOperation
public void testRetryTransactionalOperation()
-
testRetryNonTransactionalOperation
public void testRetryNonTransactionalOperation()
-
-