diff options
author | Joss Armstrong <joss.armstrong@ericsson.com> | 2019-02-13 10:25:19 +0000 |
---|---|---|
committer | Joss Armstrong <joss.armstrong@ericsson.com> | 2019-02-13 10:25:28 +0000 |
commit | b80ee7fc1071e7f9d8cd431f3a71a3e97ccca872 (patch) | |
tree | 421315776f07f206539e498177fef4b5a11c5ff0 /appc-adapters/appc-dmaap-adapter/appc-dmaap-adapter-bundle/src/main | |
parent | 5cdae4bc7e38c832028cff161979a17e25d0af80 (diff) |
Fix broken unit test in DmaapProducerImpl
Puts tests back to prior to commit Ie4817c5bdf514d4fe7f68b73812bbc2383c8cbbe
Issue-ID: APPC-1423
Change-Id: I2165c9a2ce83db1f9d185f083d41d6e5d7bce269
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
Diffstat (limited to 'appc-adapters/appc-dmaap-adapter/appc-dmaap-adapter-bundle/src/main')
-rw-r--r-- | appc-adapters/appc-dmaap-adapter/appc-dmaap-adapter-bundle/src/main/java/org/onap/appc/adapter/messaging/dmaap/impl/DmaapProducerImpl.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/appc-adapters/appc-dmaap-adapter/appc-dmaap-adapter-bundle/src/main/java/org/onap/appc/adapter/messaging/dmaap/impl/DmaapProducerImpl.java b/appc-adapters/appc-dmaap-adapter/appc-dmaap-adapter-bundle/src/main/java/org/onap/appc/adapter/messaging/dmaap/impl/DmaapProducerImpl.java index a2f2c9d2b..409dbebf3 100644 --- a/appc-adapters/appc-dmaap-adapter/appc-dmaap-adapter-bundle/src/main/java/org/onap/appc/adapter/messaging/dmaap/impl/DmaapProducerImpl.java +++ b/appc-adapters/appc-dmaap-adapter/appc-dmaap-adapter-bundle/src/main/java/org/onap/appc/adapter/messaging/dmaap/impl/DmaapProducerImpl.java @@ -5,8 +5,6 @@ * Copyright (C) 2017-2019 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. @@ -53,11 +51,10 @@ import org.osgi.framework.BundleContext; import org.osgi.framework.FrameworkUtil; import org.osgi.framework.ServiceReference; - public class DmaapProducerImpl implements Producer { private static final EELFLogger LOG = EELFManager.getInstance().getLogger(DmaapProducerImpl.class); - private static Configuration configuration = ConfigurationFactory.getConfiguration(); + private static final Configuration configuration = ConfigurationFactory.getConfiguration(); private Set<String> topics; @@ -202,7 +199,7 @@ public class DmaapProducerImpl implements Producer { useHttps = yes; } - protected MetricService getMetricservice() { + private MetricService getMetricservice() { BundleContext bctx = FrameworkUtil.getBundle(MetricService.class).getBundleContext(); ServiceReference sref = bctx.getServiceReference(MetricService.class.getName()); if (sref != null) { @@ -223,4 +220,4 @@ public class DmaapProducerImpl implements Producer { return useHttps; } -} +}
\ No newline at end of file |