Fix netconf-config-connector NetconfMappingTest 93/34893/2
authorTomas Cere <tcere@cisco.com>
Thu, 18 Feb 2016 11:37:37 +0000 (12:37 +0100)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 25 Feb 2016 10:00:46 +0000 (10:00 +0000)
Since commit operation does not fail when no transaction is
present, remove test expecting exception in such case.

port of:
https://git.opendaylight.org/gerrit/#/c/32598/

Change-Id: I4b025ae6ed73bbbdde928920b5f5f06d1115f482
Signed-off-by: Tomas Cere <tcere@cisco.com>
opendaylight/netconf/config-netconf-connector/src/test/java/org/opendaylight/controller/netconf/confignetconfconnector/NetconfMappingTest.java

index c78c80fe2bb849b97650061b87ab038f9d52321f..a567fc7c95e6f93fe53d97b4e4fb95571cc23e81 100644 (file)
@@ -611,14 +611,8 @@ public class NetconfMappingTest extends AbstractConfigTest {
         assertEquals(3 + 3, afterReplace);
     }
 
-    @Test(expected = NetconfDocumentedException.class)
-    public void testEx() throws Exception {
-
-        commit();
-    }
-
     @Test
-    public void testEx2() throws Exception {
+    public void testEx() throws Exception {
         assertContainsElement(discard(), readXmlToElement("<ok xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\"/>"));
     }