Code Review
/
netconf.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Improve NETCONF session ID handling
[netconf.git]
/
protocol
/
netconf-server
/
src
/
test
/
java
/
org
/
opendaylight
/
netconf
/
server
/
api
/
operations
/
AbstractLastNetconfOperationTest.java
diff --git
a/protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/api/operations/AbstractLastNetconfOperationTest.java
b/protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/api/operations/AbstractLastNetconfOperationTest.java
index e861e1512953ae3c34f50db25bdc08896b939c13..8234d0e172480f888186c4ad834e3e73f63d6825 100644
(file)
--- a/
protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/api/operations/AbstractLastNetconfOperationTest.java
+++ b/
protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/api/operations/AbstractLastNetconfOperationTest.java
@@
-16,6
+16,8
@@
import org.junit.Before;
import org.junit.Test;
import org.opendaylight.netconf.api.DocumentedException;
import org.opendaylight.netconf.api.xml.XmlElement;
import org.junit.Test;
import org.opendaylight.netconf.api.DocumentedException;
import org.opendaylight.netconf.api.xml.XmlElement;
+import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.netconf.base._1._0.rev110601.SessionIdType;
+import org.opendaylight.yangtools.yang.common.Uint32;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
@@
-23,8
+25,8
@@
public class AbstractLastNetconfOperationTest {
private static final class LastNetconfOperationImplTest extends AbstractLastNetconfOperation {
boolean handleWithNoSubsequentOperationsRun;
private static final class LastNetconfOperationImplTest extends AbstractLastNetconfOperation {
boolean handleWithNoSubsequentOperationsRun;
- protected LastNetconfOperationImplTest(final S
tring netconfSessionIdForReporting
) {
- super(
netconfSessionIdForReporting
);
+ protected LastNetconfOperationImplTest(final S
essionIdType sessionId
) {
+ super(
sessionId
);
handleWithNoSubsequentOperationsRun = false;
}
handleWithNoSubsequentOperationsRun = false;
}
@@
-45,7
+47,7
@@
public class AbstractLastNetconfOperationTest {
@Before
public void setUp() throws Exception {
@Before
public void setUp() throws Exception {
- netconfOperation = new LastNetconfOperationImplTest(
""
);
+ netconfOperation = new LastNetconfOperationImplTest(
new SessionIdType(Uint32.ONE)
);
}
@Test
}
@Test