From 8501f18c560534018a839b0bbccccf071e51fa4f Mon Sep 17 00:00:00 2001 From: Joss Armstrong Date: Fri, 8 Feb 2019 08:38:45 +0000 Subject: Test coverage in transaction-recorder Increased coverage from 64% to 96% Issue-ID: APPC-1403 Change-Id: Idbb94d5e8933ac65bfc68cec6996c5ac039e8748 Signed-off-by: Joss Armstrong --- .../onap/appc/transactionrecorder/impl/TransactionRecorderImpl.java | 4 +++- .../onap/appc/transactionrecorder/objects/TransactionConstants.java | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'appc-dispatcher/appc-dispatcher-common/transaction-recorder/src/main') diff --git a/appc-dispatcher/appc-dispatcher-common/transaction-recorder/src/main/java/org/onap/appc/transactionrecorder/impl/TransactionRecorderImpl.java b/appc-dispatcher/appc-dispatcher-common/transaction-recorder/src/main/java/org/onap/appc/transactionrecorder/impl/TransactionRecorderImpl.java index 98ea1b538..5c5d8fc24 100644 --- a/appc-dispatcher/appc-dispatcher-common/transaction-recorder/src/main/java/org/onap/appc/transactionrecorder/impl/TransactionRecorderImpl.java +++ b/appc-dispatcher/appc-dispatcher-common/transaction-recorder/src/main/java/org/onap/appc/transactionrecorder/impl/TransactionRecorderImpl.java @@ -5,6 +5,8 @@ * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Copyright (C) 2017 Amdocs + * ================================================================================ + * Modifications Copyright (C) 2019 Ericsson * ============================================================================= * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -158,7 +160,7 @@ public class TransactionRecorderImpl implements TransactionRecorder { } catch (SQLException e) { String message = "In progress transactions couldn't be marked aborted on server start up"; logger.error(message); - throw new RuntimeException(message); + throw new RuntimeException(message, e); } if (logger.isTraceEnabled()) { logger.trace("In progress transactions marked aborted"); diff --git a/appc-dispatcher/appc-dispatcher-common/transaction-recorder/src/main/java/org/onap/appc/transactionrecorder/objects/TransactionConstants.java b/appc-dispatcher/appc-dispatcher-common/transaction-recorder/src/main/java/org/onap/appc/transactionrecorder/objects/TransactionConstants.java index 17913233a..0424f87a3 100644 --- a/appc-dispatcher/appc-dispatcher-common/transaction-recorder/src/main/java/org/onap/appc/transactionrecorder/objects/TransactionConstants.java +++ b/appc-dispatcher/appc-dispatcher-common/transaction-recorder/src/main/java/org/onap/appc/transactionrecorder/objects/TransactionConstants.java @@ -5,6 +5,8 @@ * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Copyright (C) 2017 Amdocs + * ================================================================================ + * Modifications Copyright (C) 2019 Ericsson * ============================================================================= * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -56,7 +58,7 @@ public class TransactionConstants { private String columnName; TRANSACTION_ATTRIBUTES(String columnName){ - this.columnName=columnName; + this.columnName = columnName; } public String getColumnName(){ -- cgit 1.2.3-korg