diff options
author | Joss Armstrong <joss.armstrong@ericsson.com> | 2019-02-06 18:31:58 +0000 |
---|---|---|
committer | Patrick Brady <patrick.brady@att.com> | 2019-02-06 22:44:48 +0000 |
commit | cc48824b82792d240fb62862f167a0d991fa5eab (patch) | |
tree | 693a566f8159e5f1b218ad4e3480a5de76f80f6f /appc-dispatcher/appc-dispatcher-common/execution-queue-management-lib/src/main/java | |
parent | 830828d1ebb01bba58a3e997b4c2418a214cdfe9 (diff) |
Improve testing in ExecutionQueueServiceImpl
Increased coverage to 100%
Issue-ID: APPC-1396
Change-Id: Ie9c2bd14d83f43e4fc41dacfd45a596ec46b1d95
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
Diffstat (limited to 'appc-dispatcher/appc-dispatcher-common/execution-queue-management-lib/src/main/java')
-rw-r--r-- | appc-dispatcher/appc-dispatcher-common/execution-queue-management-lib/src/main/java/org/onap/appc/executionqueue/impl/ExecutionQueueServiceImpl.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/appc-dispatcher/appc-dispatcher-common/execution-queue-management-lib/src/main/java/org/onap/appc/executionqueue/impl/ExecutionQueueServiceImpl.java b/appc-dispatcher/appc-dispatcher-common/execution-queue-management-lib/src/main/java/org/onap/appc/executionqueue/impl/ExecutionQueueServiceImpl.java index d8bc82d2b..1c98980e8 100644 --- a/appc-dispatcher/appc-dispatcher-common/execution-queue-management-lib/src/main/java/org/onap/appc/executionqueue/impl/ExecutionQueueServiceImpl.java +++ b/appc-dispatcher/appc-dispatcher-common/execution-queue-management-lib/src/main/java/org/onap/appc/executionqueue/impl/ExecutionQueueServiceImpl.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. @@ -27,7 +29,6 @@ import com.att.eelf.configuration.EELFLogger; import com.att.eelf.configuration.EELFManager; import org.onap.appc.exceptions.APPCException; import org.onap.appc.executionqueue.ExecutionQueueService; -import org.onap.appc.executionqueue.MessageExpirationListener; import org.onap.appc.executionqueue.impl.object.QueueMessage; import java.util.Calendar; @@ -46,7 +47,7 @@ public class ExecutionQueueServiceImpl<M extends Runnable> implements ExecutionQ @Override public void putMessage(M message) throws APPCException { - this.putMessage(message,-1,null); + this.putMessage(message, -1, null); } /** @@ -62,7 +63,7 @@ public class ExecutionQueueServiceImpl<M extends Runnable> implements ExecutionQ QueueMessage queueMessage; try { - Date expirationTime = calculateExpirationTime(timeout,unit); + Date expirationTime = calculateExpirationTime(timeout, unit); queueMessage = new QueueMessage(message,expirationTime); boolean enqueueTask = queueManager.enqueueTask(queueMessage); if(!enqueueTask){ |