PaymentService

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total207 of 1,10981%37 of 8455%307045257128
applyFailure(PaymentOrderEntity, PaymentModels.CallbackCommand, Instant)460%40%33111111
processValidCallback(PaymentModels.CallbackCommand, Instant)4110471%81055%71082901
lambda$createPayment$0(long, TradePort.PaymentContext, PaymentModels.CreatePaymentCommand, String, String, Instant, TransactionStatus)387766%8220%5672701
createPayment(PaymentModels.CreatePaymentCommand)157483%4660%4631701
findStablePayment(Long, String, String, String, String)154173%3770%3631301
insertTransaction(PaymentOrderEntity, PaymentModels.CallbackCommand, String, Instant)125882%5337%3531901
processMockCallback(PaymentModels.CallbackCommand)114680%1375%1321101
sha256(String)7956%n/a012401
writeJson(Object)7541%n/a012301
applySuccess(PaymentOrderEntity, PaymentModels.CallbackCommand, Instant)54890%1375%1311301
callbackExpired(long, Instant)51372%1150%122401
requireUpdated(int)5444%1150%121301
appendPaymentSucceeded(PaymentOrderEntity, Instant)139100%n/a0103401
recordUntrustedCallback(PaymentModels.CallbackCommand, Instant)49100%n/a0101301
callbackLog(PaymentModels.CallbackCommand, String, boolean, String, String, Instant)41100%n/a0101201
PaymentService(PaymentOrderMapper, PaymentTransactionMapper, PaymentCallbackLogMapper, CallbackSecurityAuditMapper, OutboxEventMapper, TradePort, MockChannelProperties, ObjectMapper, TransactionTemplate, MessagingTracing)33100%n/a0101201
view(PaymentOrderEntity)22100%n/a010401
getPaymentByOrder(Long, String)21100%1375%130401
requirePayment(String)21100%2100%020501
getPayment(Long, String)18100%2100%020401
getPaymentByIdempotencyKey(Long, String)17100%2100%020401
lambda$recordRejectedCallback$3(PaymentModels.CallbackCommand, boolean, PaymentError, Instant, TransactionStatus)16100%n/a010201
requireSameChannelTransactionNo(PaymentOrderEntity, PaymentModels.CallbackCommand)12100%2100%020401
recordRejectedCallback(PaymentModels.CallbackCommand, PaymentError, boolean, Instant)10100%n/a010201
constantEquals(String, String)8100%n/a010301
lambda$recordUntrustedCallback$2(CallbackSecurityAuditEntity, TransactionStatus)6100%n/a010101
callbackHash(PaymentModels.CallbackCommand)5100%n/a010101
lambda$processMockCallback$1(PaymentModels.CallbackCommand, Instant, TransactionStatus)5100%n/a010101