Surefire Report

Summary


Tests Errors Failures Skipped Success Rate Time
415 0 0 0 100% 15.564

Note: failures are anticipated and checked for with assertions while errors are unanticipated.

Package List


Package Tests Errors Failures Skipped Success Rate Time
org.springframework.batch.core.step.item 92 0 0 0 100% 6.407
org.springframework.batch.core.resource 15 0 0 0 100% 0.262
org.springframework.batch.core.converter 11 0 0 0 100% 0.01
org.springframework.batch.core.step.tasklet 15 0 0 0 100% 0.031
org.springframework.batch.core.launch.support 24 0 0 0 100% 0.549
org.springframework.batch.core.job 16 0 0 0 100% 0.277
org.springframework.batch.core.configuration.support 13 0 0 0 100% 0.162
org.springframework.batch.core.repository.support 18 0 0 0 100% 1.296
org.springframework.batch.core.repository 10 0 0 0 100% 0.007
org.springframework.batch.core 100 0 0 0 100% 0.185
org.springframework.batch.core.listener 21 0 0 0 100% 0.023
org.springframework.batch.core.step 3 0 0 0 100% 0.006
org.springframework.batch.core.launch 6 0 0 0 100% 0.03
org.springframework.batch.core.repository.dao 71 0 0 0 100% 6.319

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

org.springframework.batch.core.step.item

Class Tests Errors Failures Skipped Success Rate Time
ItemSkipPolicyItemHandlerTests 10 0 0 0 100% 0.167
RepeatOperationsStepFactoryBeanTests 3 0 0 0 100% 0.051
SimpleRetryExceptionHandlerTests 3 0 0 0 100% 0.008
TransactionInterceptorValidatorTests 4 0 0 0 100% 0.004
StepExecutorInterruptionTests 4 0 0 0 100% 0.5
ItemOrientedStepTests 32 0 0 0 100% 0.704
SkipLimitStepFactoryBeanTests 11 0 0 0 100% 1.306
SkipLimitReadFailurePolicyTests 3 0 0 0 100% 0.005
SkipIntegrationTests 4 0 0 0 100% 2.071
StatefulRetryStepFactoryBeanTests 9 0 0 0 100% 0.937
ItemOrientedStepIntegrationTests 1 0 0 0 100% 0.385
SimpleStepFactoryBeanTests 8 0 0 0 100% 0.269

org.springframework.batch.core.resource

Class Tests Errors Failures Skipped Success Rate Time
StepExecutionResourceProxyTests 9 0 0 0 100% 0.124
JdbcCursorItemReaderPreparedStatementIntegrationTests 1 0 0 0 100% 0.015
StepExecutionPreparedStatementSetterTests 3 0 0 0 100% 0.119
StepExecutionSimpleCompletionPolicyTests 2 0 0 0 100% 0.004

org.springframework.batch.core.converter

Class Tests Errors Failures Skipped Success Rate Time
DefaultJobParametersConverterTests 11 0 0 0 100% 0.01

org.springframework.batch.core.step.tasklet

Class Tests Errors Failures Skipped Success Rate Time
TaskletStepTests 12 0 0 0 100% 0.03
TaskletAdapterTests 3 0 0 0 100% 0.001

org.springframework.batch.core.launch.support

Class Tests Errors Failures Skipped Success Rate Time
ScheduledJobParametersFactoryTests 6 0 0 0 100% 0.018
CommandLineJobRunnerTests 4 0 0 0 100% 0.427
SimpleExportedJobLauncherTests 10 0 0 0 100% 0.095
SimpleJvmExitCodeMapperTests 4 0 0 0 100% 0.009

org.springframework.batch.core.job

Class Tests Errors Failures Skipped Success Rate Time
SimpleJobTests 16 0 0 0 100% 0.277

org.springframework.batch.core.configuration.support

Class Tests Errors Failures Skipped Success Rate Time
ClassPathXmlApplicationContextJobFactoryTests 2 0 0 0 100% 0.026
MapJobRegistryTests 4 0 0 0 100% 0.001
JobRegistryBeanPostProcessorTests 7 0 0 0 100% 0.135

org.springframework.batch.core.repository.support

Class Tests Errors Failures Skipped Success Rate Time
SimpleJobRepositoryIntegrationTests 6 0 0 0 100% 0.955
MapJobRepositoryFactoryBeanTests 1 0 0 0 100% 0.187
JobRepositoryFactoryBeanTests 8 0 0 0 100% 0.151
SimpleJobRepositoryTests 3 0 0 0 100% 0.003

org.springframework.batch.core.repository

Class Tests Errors Failures Skipped Success Rate Time
NoSuchJobExceptionTests 2 0 0 0 100% 0.001
DuplicateJobExceptionTests 2 0 0 0 100% 0.003
JobRestartExceptionTests 2 0 0 0 100% 0.001
JobExecutionAlreadyRunningExceptionTests 2 0 0 0 100% 0
JobInstanceAlreadyCompleteExceptionTests 2 0 0 0 100% 0.002

org.springframework.batch.core

Class Tests Errors Failures Skipped Success Rate Time
JobParametersBuilderTests 3 0 0 0 100% 0.003
StepExecutionTests 26 0 0 0 100% 0.026
JobExecutionExceptionTests 2 0 0 0 100% 0.002
BatchStatusTests 5 0 0 0 100% 0.009
JobExecutionTests 16 0 0 0 100% 0.011
JobParametersTests 24 0 0 0 100% 0.108
JobInstanceTests 4 0 0 0 100% 0.007
SpringBeanJobTests 3 0 0 0 100% 0.012
StepContributionTests 2 0 0 0 100% 0.001
JobInterruptedExceptionTests 2 0 0 0 100% 0.002
EntityTests 13 0 0 0 100% 0.004

org.springframework.batch.core.listener

Class Tests Errors Failures Skipped Success Rate Time
CompositeItemWriteListenerTests 4 0 0 0 100% 0.001
OrderedCompositeTests 4 0 0 0 100% 0.003
CompositeChunkListenerTests 2 0 0 0 100% 0.002
CompositeStepExecutionListenerTests 4 0 0 0 100% 0.004
CompositeJobExecutionListenerTests 3 0 0 0 100% 0.006
CompositeItemReadListenerTests 4 0 0 0 100% 0.007

org.springframework.batch.core.step

Class Tests Errors Failures Skipped Success Rate Time
NoWorkFoundStepExecutionListenerTests 1 0 0 0 100% 0.005
ThreadStepInterruptionPolicyTests 2 0 0 0 100% 0.001

org.springframework.batch.core.launch

Class Tests Errors Failures Skipped Success Rate Time
SimpleJobLauncherTests 6 0 0 0 100% 0.03

org.springframework.batch.core.repository.dao

Class Tests Errors Failures Skipped Success Rate Time
JdbcJobExecutionDaoTests 8 0 0 0 100% 0.551
NoSuchBatchDomainObjectExceptionTests 1 0 0 0 100% 0.002
MapJobExecutionDaoTests 9 0 0 0 100% 0.097
JdbcJobInstanceDaoTests 3 0 0 0 100% 1.331
MapJobInstanceDaoTests 3 0 0 0 100% 0.001
MapStepExecutionDaoTests 12 0 0 0 100% 0.196
JdbcStepExecutionDaoTests 12 0 0 0 100% 1.444
JdbcJobDaoQueryTests 1 0 0 0 100% 0.005
JdbcJobDaoTests 22 0 0 0 100% 2.692

Test Cases

NoSuchJobExceptionTests

testExceptionString 0
testExceptionStringThrowable 0

ScheduledJobParametersFactoryTests

testGetParameters 0.001
testGetProperties 0
testEmptyArgs 0
testNullArgs 0.001
testGetParametersWithDateFormat 0
testGetParametersWithBogusDate 0.001

SimpleJobRepositoryIntegrationTests

testCreateAndFind 0.136
testCreateAndFindWithNoStartDate 0.115
testRunNonRestartableJobInstanceTwice 0.124
testGetStepExecutionCountAndLastStepExecution 0.33
testSaveExecutionContext 0.085
testOnlyOneJobExecutionAllowedRunning 0.163

ClassPathXmlApplicationContextJobFactoryTests

testCreateJob 0.025
testGetJobName 0

ItemSkipPolicyItemHandlerTests

testReadWithNoSkip 0.001
testReadWithSkip 0.001
testWriteWithNoSkip 0
testHandleWithSkip 0
testWriteWithSkipAfterMark 0.002
testWriteWithSkipAndItemKeyGenerator 0.046
testWriteWithSkipWhenMutating 0.001
testWriteWithSkipCapacityBreached 0.099
testWriteWithSkipAndDoNotRethrow 0.001
testHandleWithSkipAndListeners 0.014

CommandLineJobRunnerTests

testMain 0.094
testJobAlreadyRunning 0.183
testWithNoParameters 0.077
testDestroyCallback 0.071

CompositeItemWriteListenerTests

testSetListners 0
testBeforeWrite 0
testAfterWrite 0
testOnWriteError 0

MapJobRepositoryFactoryBeanTests

testCreateRepository 0.181

JobParametersBuilderTests

testToJobRuntimeParamters 0
testOrderedTypes 0
testOrderedStrings 0

JdbcJobExecutionDaoTests

testSaveAndFind 0.044
testSaveAddsIdAndVersion 0.016
testGetExecutionCount 0.099
testUpdateExecution 0.058
testGetLastExecution 0.103
testSaveAndFindContext 0.019
testSaveAndFindEmptyContext 0.176
testUpdateContext 0.033

StepExecutionResourceProxyTests

testToString 0.004
testCreateFileName 0
testNullFilePattern 0
testNonStandardFilePattern 0
testNonStandardFilePatternWithJobParameters 0
testResoureLoaderAware 0.002
testToStringWithNullDelegate 0
testNonExistentJobParameter 0.001
testLongJobParameter 0

OrderedCompositeTests

testSetItems 0
testAdd 0
testAddOrdered 0
testAddMultipleOrdered 0.001

SimpleExportedJobLauncherTests

testIsRunning 0.001
testStop 0.001
testAfterPropertiesSet 0
testAfterPropertiesSetWithLauncher 0.001
testGetStatistics 0.001
testGetStatisticsWithContent 0
testAlreadyRunning 0
testRunNonExistentJob 0
testRunJobWithParameters 0
testRunJobWithParametersAndFactory 0.001

NoSuchBatchDomainObjectExceptionTests

testCreateException 0

MapJobExecutionDaoTests

testPersistentCopy 0.023
testSaveAndFind 0.01
testSaveAddsIdAndVersion 0.002
testGetExecutionCount 0.018
testUpdateExecution 0.009
testGetLastExecution 0.005
testSaveAndFindContext 0.014
testSaveAndFindEmptyContext 0.006
testUpdateContext 0.003

StepExecutionTests

testToString 0
testGetStatus 0.012
testSerialization 0.005
testHashCode 0
testGetEndTime 0
testGetStartTime 0
testGetJobId 0
testGetExitCode 0
testStepExecution 0
testStepExecutionWithNullId 0
testGetCommitCount 0
testGetTaskCount 0
testGetJobExecution 0
testApplyContribution 0.001
testTerminateOnly 0
testNullNameIsIllegal 0
testExecutionContext 0
testEqualsWithSameIdentifier 0
testEqualsWithNull 0
testEqualsWithNullIdentifiers 0
testEqualsWithNullJob 0
testEqualsWithSelf 0
testEqualsWithDifferent 0
testEqualsWithNullStepId 0
testHashCodeWithNullIds 0
testHashCodeViaHashSet 0

JdbcCursorItemReaderPreparedStatementIntegrationTests

testRead 0.012

JdbcJobInstanceDaoTests

testCreateDuplicateInstance 1.291
testCreationAddsVersion 0.012
testCreateAndRetrieve 0.026

CompositeChunkListenerTests

testBeforeChunk 0
testAfterChunk 0

JobExecutionExceptionTests

testExceptionString 0.001
testExceptionStringThrowable 0

SimpleJobLauncherTests

testRun 0.017
testTaskExecutor 0.001
testRunWithException 0.003
testRunWithError 0.001
testInitialiseWithoutRepository 0
testInitialiseWithRepository 0.001

BatchStatusTests

testToString 0
testGetStatus 0
testGetStatusWrongCode 0
testGetStatusNullCode 0
testSerialization 0

TaskletStepTests

testSuccessfulExecutionWithExecutionContext 0.001
testSuccessfulExecutionWithFailureOnSaveOfExecutionContext 0.002
testStepFailureInAfterStepCallback 0.002
testTaskletMandatory 0
testRepositoryMandatory 0.001
testSuccessfulExecution 0
testSuccessfulExecutionWithStepContext 0
testFailureExecution 0
testSuccessfulExecutionWithListener 0
testExceptionExecution 0.017
testExceptionError 0.002
testJobInterrupted 0.001

MapJobInstanceDaoTests

testCreateDuplicateInstance 0
testCreationAddsVersion 0
testCreateAndRetrieve 0

RepeatOperationsStepFactoryBeanTests

testType 0
testDefaultValue 0
testStepOperationsWithoutChunkListener 0.049

StepExecutionPreparedStatementSetterTests

testAfterPropertiesSet 0.071
testSetValues 0.043
testNonExistentProperties 0.002

SimpleRetryExceptionHandlerTests

testRethrowWhenRetryExhausted 0.007
testNoRethrowWhenRetryNotExhausted 0.001
testRethrowWhenFatal 0

TransactionInterceptorValidatorTests

testValidateNull 0
testValidateWithNoInterceptors 0
testValidateAdvisedWithOneInterceptor 0.001
testValidateAdvisedWithTwoInterceptors 0.001

DuplicateJobExceptionTests

testExceptionString 0.001
testExceptionStringThrowable 0

CompositeStepExecutionListenerTests

testSetListeners 0.001
testSetListener 0
testOpen 0
testOnError 0

MapStepExecutionDaoTests

testPersistentCopy 0.018
testUpdateExecution 0.006
testSaveAndFindContext 0.01
testSaveAndFindEmptyContext 0.007
testUpdateContext 0.109
testSaveExecutionAssignsIdAndVersion 0.003
testSaveAndFindExecution 0.008
testGetForNotExistingJobExecution 0.001
testSaveExecutionWithIdAlreadySet 0.002
testSaveExecutionWithVersionAlreadySet 0.002
testConcurrentModificationException 0.005
testStoreInteger 0.005

JobExecutionTests

testToString 0
testGetStatus 0
testSerialization 0.002
testGetJob 0
testJobExecution 0
testGetEndTime 0
testIsRunning 0
testIsRunningWithStoppedExecution 0
testGetStartTime 0
testGetJobId 0
testGetJobIdForNullJob 0.001
testGetExitCode 0
testContextContainsInfo 0
testAddAndRemoveStepExecution 0
testStop 0
testToStringWithNullJob 0

JobRestartExceptionTests

testExceptionString 0
testExceptionStringThrowable 0

NoWorkFoundStepExecutionListenerTests

testAfterStep 0.001

StepExecutorInterruptionTests

testInterruptChunk 0.218
testInterruptStep 0.157
testInterruptOnInterruptedException 0.117
testLockNotReleasedIfChunkFails 0.006

MapJobRegistryTests

testUnregister 0
testReplaceDuplicateConfiguration 0
testRealDuplicateConfiguration 0.001
testGetJobConfigurations 0

SimpleJobTests

testFailed 0.012
testExitStatusReturned 0.022
testRunNormally 0.009
testRunNormallyWithListener 0.013
testRunWithSimpleStepExecutor 0.03
testExecutionContextIsSet 0.017
testInterrupted 0.014
testFailedWithListener 0.005
testFailedWithError 0.016
testStepShouldNotStart 0.009
testNoSteps 0.003
testNotExecutedIfAlreadyStopped 0.001
testRestart 0.037
testInterruptWithListener 0.022
testRestartScenario 0.031
testInterruptJob 0.004

CompositeJobExecutionListenerTests

testSetListeners 0.002
testSetListener 0.001
testOpen 0.001

JdbcStepExecutionDaoTests

testTruncateExitDescription 0.091
testUpdateExecution 0.166
testSaveAndFindContext 0.122
testSaveAndFindEmptyContext 0.036
testUpdateContext 0.199
testSaveExecutionAssignsIdAndVersion 0.117
testSaveAndFindExecution 0.186
testGetForNotExistingJobExecution 0.098
testSaveExecutionWithIdAlreadySet 0.034
testSaveExecutionWithVersionAlreadySet 0.108
testConcurrentModificationException 0.111
testStoreInteger 0.169

CompositeItemReadListenerTests

testBeforeRead 0
testAfterRead 0
testOnReadError 0
testSetListners 0

JobExecutionAlreadyRunningExceptionTests

testExceptionString 0
testExceptionStringThrowable 0

ThreadStepInterruptionPolicyTests

testCheckInterruptedNotComplete 0
testCheckInterruptedComplete 0.001

JobParametersTests

testSerialization 0.012
testEqualsSelf 0
testEqualsNull 0
testBadLongKeyException 0
testBadLongConstructorException 0
testBadDoubleConstructorException 0
testBadStringConstructorException 0
testBadDateConstructorException 0
testGetString 0
testGetStringParameters 0
testGetLong 0
testGetLongParameters 0
testGetDouble 0.001
testGetDoubleParameters 0
testGetDate 0
testGetDateParameters 0
testIsEmptyWhenEmpty 0
testIsEmptyWhenNotEmpty 0
testEquals 0.085
testEqualsDifferent 0
testEqualsWrongType 0
testToStringOrder 0.001
testHashCodeEqualWhenEmpty 0.001
testHashCodeEqualWhenNotEmpty 0

JobInstanceTests

testSerialization 0.002
testGetName 0
testGetJob 0
testCreateWithNulls 0

TaskletAdapterTests

testExecuteWithExitStatus 0
testMapResultWithNull 0
testMapResultWithNonNull 0

ItemOrientedStepTests

testStepExecutor 0
testChunkExecutor 0.001
testRepository 0.016
testIncrementRollbackCount 0.024
testExitCodeDefaultClassification 0.002
testExitCodeCustomClassification 0.068
testNonRestartedJob 0.046
testSuccessfulExecutionWithExecutionContext 0.001
testSuccessfulExecutionWithFailureOnSaveOfExecutionContext 0.002
testNoSaveExecutionAttributesRestartableJob 0
testRestartJobOnNonRestartableTasklet 0
testStreamManager 0.015
testDirectlyInjectedItemStream 0.001
testDirectlyInjectedListener 0
testListenerCalledBeforeStreamOpened 0
testAfterStep 0.001
testDirectlyInjectedListenerOnError 0.108
testDirectlyInjectedStreamWhichIsAlsoReader 0.001
testStatusForInterruptedException 0.049
testStatusForNormalFailure 0.002
testStatusForErrorFailure 0.053
testStatusForResetFailedException 0.148
testStatusForCommitFailedException 0.002
testStatusForFinalUpdateFailedException 0.001
testStatusForCloseFailedException 0.026
testRestartAfterFailureInFirstChunk 0.002
testStepToCompletion 0.03
testStepFailureInAfterStepCallback 0.001
testStepExecutionUpdates 0.001
testStepExecutionUpdateFailure 0.08
testNoRollbackOnFlushException 0.003
testNoRollbackOnUpdateException 0.007

SkipLimitStepFactoryBeanTests

testNonSkippableException 0.204
testSkip 0.078
testNonSkippableExceptionOnRead 0.066
testSkipWithoutRethrow 0.164
testFatalException 0.085
testSkipOverLimit 0.149
testSkipOverLimitOnRead 0.095
testSkipOnReadNotDoubleCounted 0.25
testSkipOnWriteNotDoubleCounted 0.142
testDefaultSkipPolicy 0.004
testRollback 0.065

SpringBeanJobTests

testBeanName 0.007
testBeanNameWithBeanDefinition 0.001
testBeanNameWithParentBeanDefinition 0.003

JdbcJobDaoQueryTests

testTablePrefix 0.003

JobRepositoryFactoryBeanTests

testCreateRepository 0.005
testNoDatabaseType 0.001
testMissingDataSource 0
testMissingTransactionManager 0
testInvalidDatabaseType 0
testTransactionAttributesForCreateMethodNullHypothesis 0.003
testTransactionAttributesForCreateMethod 0.125
testSetTransactionAttributesForCreateMethod 0.007

SimpleJobRepositoryTests

testSaveOrUpdateInvalidJobExecution 0.001
testSaveOrUpdateValidJobExecution 0
testSaveOrUpdateStepExecutionException 0

DefaultJobParametersConverterTests

testGetParameters 0
testGetProperties 0
testEmptyArgs 0
testNullArgs 0
testGetParametersWithDateFormat 0
testGetParametersWithBogusDate 0.001
testGetParametersWithNumberFormat 0
testGetParametersWithBogusLong 0
testGetParametersWithDoubleValueDeclaredAsLong 0
testGetParametersWithBogusDouble 0
testGetParametersWithDouble 0

JobRegistryBeanPostProcessorTests

testInitialization 0
testBeforeInitialization 0
testAfterInitializationWithWrongType 0
testAfterInitializationWithCorrectType 0
testAfterInitializationWithDuplicate 0.001
testUnregisterOnDestroy 0
testExecutionWithApplicationContext 0.131

SkipLimitReadFailurePolicyTests

testLimitExceed 0
testNonSkippableException 0
testSkip 0

SimpleJvmExitCodeMapperTests

testGetExitCodeWithpPredefinedCodes 0
testGetExitCodeWithPredefinedCodesOverridden 0.001
testGetExitCodeWithCustomCode 0.006
testGetExitCodeWithDefaultCode 0

StepContributionTests

testIncrementTaskCount 0
testIncrementCommitCount 0

JobInterruptedExceptionTests

testExceptionString 0
testExceptionStringThrowable 0

StepExecutionSimpleCompletionPolicyTests

testToString 0
testKeyName 0

JobInstanceAlreadyCompleteExceptionTests

testExceptionString 0
testExceptionStringThrowable 0

SkipIntegrationTests

testSkip 0.578
testSkipListener 0.437
testExceptionInSkipListener 0.535
testExceptionInItemReadListener 0.52

JdbcJobDaoTests

testUpdateJobExecutionWithLongExitCode 0.12
testVersionIsNotNullForJob 0.156
testVersionIsNotNullForJobExecution 0.058
testFindNonExistentJob 0.093
testFindJob 0.124
testFindJobWithNullRuntime 0.104
testCreateJobWithExistingName 0.23
testUpdateJobExecution 0.105
testSaveJobExecution 0.1
testUpdateInvalidJobExecution 0.142
testUpdateNullIdJobExection 0.096
testIncrementExecutionCount 0.104
testZeroExecutionCount 0.109
testJobWithSimpleJobIdentifier 0.168
testJobWithDefaultJobIdentifier 0.215
testFindJobExecutions 0.103
testFindJobsWithProperties 0.044
testGetLastJobExecution 0.11
testCreateDuplicateInstance 0.168
testCreationAddsVersion 0.067
testSaveAddsVersionAndId 0.16
testUpdateIncrementsVersion 0.102

StatefulRetryStepFactoryBeanTests

testType 0.001
testDefaultValue 0
testSuccessfulRetryWithReadFailure 0.007
testSkipAndRetry 0.021
testSkipAndRetryWithWriteFailure 0.335
testRetryWithNoSkip 0.143
testRetryWithSkipLimitBreach 0.178
testRetryPolicy 0.151
testCacheLimitWithRetry 0.092

EntityTests

testToString 0
testHashCode 0
testHashCodeNullId 0
testGetVersion 0
testIncrementVersion 0
testIncrementVersionTwice 0
testEqualsSelf 0
testEqualsSelfWithNullId 0
testEqualsEntityWithNullId 0
testEqualsEntity 0
testEqualsEntityWrongId 0.001
testEqualsObject 0
testEqualsNull 0

ItemOrientedStepIntegrationTests

testStatusForCommitFailedException 0.385

SimpleStepFactoryBeanTests

testSimpleJob 0.063
testSimpleConcurrentJob 0.073
testSimpleJobWithItemListeners 0.037
testExceptionTerminates 0.027
testExceptionHandler 0.031
testChunkListeners 0.012
testCommitIntervalMustBeGreaterThanZero 0
testCommitIntervalAndCompletionPolicyBothSet 0.001