Remove unthrown exceptions 27/92827/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 1 Oct 2020 09:48:55 +0000 (11:48 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 1 Oct 2020 09:48:55 +0000 (11:48 +0200)
IOException is not thrown here, remove the declarations.

Change-Id: Ie112d79946b165283c900b420045aedf1b4d8673
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-dom-codec/src/test/java/org/opendaylight/mdsal/binding/dom/codec/impl/Mdsal552Test.java

index 73ebdf9499b18501fe3ecdce90df9d7e4fdce793..99c07a57834f0dacf7f653f3d5725093d5489c34 100644 (file)
@@ -9,7 +9,6 @@ package org.opendaylight.mdsal.binding.dom.codec.impl;
 
 import static org.junit.Assert.assertEquals;
 
-import java.io.IOException;
 import org.junit.Test;
 import org.opendaylight.yang.gen.v1.mdsal552.norev.Mdsal552Data.OutputA;
 import org.opendaylight.yang.gen.v1.mdsal552.norev.RefTestOutput;
@@ -26,7 +25,7 @@ public class Mdsal552Test extends AbstractBindingCodecTest {
     private static final QName OUTPUTREF = QName.create(RefTestOutput.QNAME, "outputref");
 
     @Test
-    public void testLeafrefEnumerationToNormalized() throws IOException {
+    public void testLeafrefEnumerationToNormalized() {
         assertEquals(Builders.containerBuilder()
             .withNodeIdentifier(new NodeIdentifier(RefTestOutput.QNAME))
             .withChild(ImmutableNodes.leafNode(OUTPUTREF, OutputA.DownTest.getName()))
@@ -35,7 +34,7 @@ public class Mdsal552Test extends AbstractBindingCodecTest {
     }
 
     @Test
-    public void testLeafrefEnumerationFromNormalized() throws IOException {
+    public void testLeafrefEnumerationFromNormalized() {
         assertEquals(new RefTestOutputBuilder().setOutputref(OutputA.DownTest).build(),
             codecContext.fromNormalizedNodeRpcData(OUTPUT_PATH, Builders.containerBuilder()
                 .withNodeIdentifier(new NodeIdentifier(RefTestOutput.QNAME))