From 16dc89fdfea1c6f72f10eb20586b16da79962aea Mon Sep 17 00:00:00 2001 From: Ganesh Chandrasekaran Date: Fri, 31 Aug 2018 08:57:24 +0900 Subject: covered cases for NetconfAdaptor2 Issue-ID: APPC-1182 Change-Id: Ib3e96b5869ce95299cf6e83a6f25ad04f7373382 Signed-off-by: Ganesh Chandrasekaran --- .../onap/appc/adapter/netconf/internal/NetconfAdapter2.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/main') diff --git a/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/main/java/org/onap/appc/adapter/netconf/internal/NetconfAdapter2.java b/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/main/java/org/onap/appc/adapter/netconf/internal/NetconfAdapter2.java index 567a45a96..be286cd48 100644 --- a/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/main/java/org/onap/appc/adapter/netconf/internal/NetconfAdapter2.java +++ b/appc-adapters/appc-netconf-adapter/appc-netconf-adapter-bundle/src/main/java/org/onap/appc/adapter/netconf/internal/NetconfAdapter2.java @@ -52,6 +52,19 @@ public class NetconfAdapter2 { out = new PipedOutputStream(pipedInOut); } + /** + * Constructor. + * + * @param in InputStream this instance will read netconf messages from + * @param out OutputStream this instance will write netconf messages to + * @throws IOException + */ + public NetconfAdapter2(PipedInputStream in, PipedOutputStream out) throws IOException { + this.in = in; + this.out = out; + + } + /** * @return InputStream this instance will read netconf messages from. */ -- cgit 1.2.3-korg