PaymentCycleRepositoryTest

18

tests

0

failures

0

ignored

0.855s

duration

100%

successful

Tests

Test Method name Duration Result
shouldFailToSavePaymentCyclesWithDuplicateReference() shouldFailToSavePaymentCyclesWithDuplicateReference() 0.065s passed
shouldFindLatestCycleForClaim() shouldFindLatestCycleForClaim() 0.082s passed
shouldIdentifyClaimOnceForLatestCycleOnly() shouldIdentifyClaimOnceForLatestCycleOnly() 0.053s passed
shouldIdentifyClaimWithLatestCycleEndingToday() shouldIdentifyClaimWithLatestCycleEndingToday() 0.045s passed
shouldIdentifyClaimWithLatestCycleEndingYesterday() shouldIdentifyClaimWithLatestCycleEndingYesterday() 0.042s passed
[1] ACTIVE shouldIdentifyPaymentCyclesForActiveClaims(ClaimStatus)[1] 0.042s passed
[2] PENDING_EXPIRY shouldIdentifyPaymentCyclesForActiveClaims(ClaimStatus)[2] 0.045s passed
shouldNotIdentifyClaimWithLatestCycleEndingInFuture() shouldNotIdentifyClaimWithLatestCycleEndingInFuture() 0.042s passed
[1] REJECTED shouldNotIdentifyPaymentCyclesForInactiveOrNewClaims(ClaimStatus)[1] 0.072s passed
[2] PENDING shouldNotIdentifyPaymentCyclesForInactiveOrNewClaims(ClaimStatus)[2] 0.043s passed
[3] NEW shouldNotIdentifyPaymentCyclesForInactiveOrNewClaims(ClaimStatus)[3] 0.043s passed
[4] EXPIRED shouldNotIdentifyPaymentCyclesForInactiveOrNewClaims(ClaimStatus)[4] 0.045s passed
[5] ERROR shouldNotIdentifyPaymentCyclesForInactiveOrNewClaims(ClaimStatus)[5] 0.043s passed
shouldNotSaveAnInvalidPaymentCycle() shouldNotSaveAnInvalidPaymentCycle() 0.028s passed
shouldRetrieveNoPaymentCycles() shouldRetrieveNoPaymentCycles() 0.021s passed
shouldReturnAllClaimsWithPaymentCycleEndingTodayOrEarlier() shouldReturnAllClaimsWithPaymentCycleEndingTodayOrEarlier() 0.073s passed
shouldReturnEmptyWhenNoCyclesExistForClaim() shouldReturnEmptyWhenNoCyclesExistForClaim() 0.029s passed
shouldSaveNewPaymentCycle() shouldSaveNewPaymentCycle() 0.042s passed

Standard output

12:25:04.971 [Test worker] ERROR o.h.e.jdbc.spi.SqlExceptionHelper - ERROR: duplicate key value violates unique constraint "unique_claim_reference"
  Detail: Key (reference)=(0E1567C0B4) already exists.