From 714fb5988c91151c41e9c5e27346336f18efd1c1 Mon Sep 17 00:00:00 2001 From: Joss Armstrong Date: Wed, 6 Feb 2019 18:14:04 +0000 Subject: Add coverage for executionqueue helper package New test file giving 100% coverage Issue-ID: APPC-1396 Change-Id: I597a778e4c128f745335ad243c0fa8cc8b0b1e45 Signed-off-by: Joss Armstrong --- .../main/java/org/onap/appc/executionqueue/helper/Util.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'appc-dispatcher/appc-dispatcher-common/execution-queue-management-lib/src/main/java/org') diff --git a/appc-dispatcher/appc-dispatcher-common/execution-queue-management-lib/src/main/java/org/onap/appc/executionqueue/helper/Util.java b/appc-dispatcher/appc-dispatcher-common/execution-queue-management-lib/src/main/java/org/onap/appc/executionqueue/helper/Util.java index 878794bcf..b89001403 100644 --- a/appc-dispatcher/appc-dispatcher-common/execution-queue-management-lib/src/main/java/org/onap/appc/executionqueue/helper/Util.java +++ b/appc-dispatcher/appc-dispatcher-common/execution-queue-management-lib/src/main/java/org/onap/appc/executionqueue/helper/Util.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. @@ -25,7 +27,8 @@ package org.onap.appc.executionqueue.helper; import org.onap.appc.configuration.Configuration; import org.onap.appc.configuration.ConfigurationFactory; - +import com.att.eelf.configuration.EELFLogger; +import com.att.eelf.configuration.EELFManager; import java.util.concurrent.Executors; import java.util.concurrent.ThreadFactory; import java.util.concurrent.atomic.AtomicInteger; @@ -36,6 +39,7 @@ public class Util { private int default_threadpool_size = 10; private String queue_size_key = "appc.dispatcher.executionqueue.backlog.size"; private String threadpool_size_key = "appc.dispatcher.executionqueue.threadpool.size"; + private EELFLogger logger = EELFManager.getInstance().getLogger(Util.class); private Configuration configuration; @@ -54,7 +58,7 @@ public class Util { try { size = Integer.parseInt(sizeStr); } catch (NumberFormatException e) { - + logger.error("Error parsing dispatcher execution queue backlog size", e); } return size; @@ -67,7 +71,7 @@ public class Util { try { size = Integer.parseInt(sizeStr); } catch (NumberFormatException e) { - + logger.error("Error parsing dispatcher execution queue threadpool size", e); } return size; -- cgit