summaryrefslogtreecommitdiffstats
path: root/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/main
diff options
context:
space:
mode:
authorJoss Armstrong <joss.armstrong@ericsson.com>2019-02-05 13:59:47 +0000
committerPatrick Brady <patrick.brady@att.com>2019-02-06 21:32:54 +0000
commit4fc2e746a0c79e6f81fd08241733b02b781dc5d0 (patch)
treee616e5a7ec9236e6f8b021c0071363210e7baa16 /appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/main
parente38c122ec2c57e63d0788148841fbe6231957482 (diff)
Test coverage for AppcNetconfAdapterActivator
Added 100% coverage for untested class. Moved other test file to correct package. Issue-ID: APPC-1389 Change-Id: I73e768f21d5cda8865f891c63b9ad3f3ea2cce80 Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
Diffstat (limited to 'appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/main')
-rw-r--r--appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/main/java/org/onap/appc/adapter/netconf/AppcNetconfAdapterActivator.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/main/java/org/onap/appc/adapter/netconf/AppcNetconfAdapterActivator.java b/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/main/java/org/onap/appc/adapter/netconf/AppcNetconfAdapterActivator.java
index 2c44c69c3..f412223ec 100644
--- a/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/main/java/org/onap/appc/adapter/netconf/AppcNetconfAdapterActivator.java
+++ b/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/main/java/org/onap/appc/adapter/netconf/AppcNetconfAdapterActivator.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.
@@ -61,13 +63,13 @@ public class AppcNetconfAdapterActivator implements BundleActivator {
/*
* The reference to the actual implementation object that implements the services
*/
- NetconfClientFactory clientFactory = new NetconfClientFactory();
+ NetconfClientFactory clientFactory = new NetconfClientFactory();
factoryRegistration = context.registerService(NetconfClientFactory.class, clientFactory, null);
NetconfDataAccessService dataAccessService = new NetconfDataAccessServiceImpl();
//set dblib service
ServiceReference sref = context.getServiceReference(DbLibService.class.getName());
dataAccessService.setDbLibService((DbLibService)context.getService(sref));
- ///////////////////////////////////
+
factoryRegistration = context.registerService(NetconfDataAccessService.class, dataAccessService, null);
}
}