From 457c67ef75115f8042f9ac0528ea0fc5a2da5ec5 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Thu, 1 Oct 2020 11:48:55 +0200 Subject: [PATCH] Remove unthrown exceptions IOException is not thrown here, remove the declarations. Change-Id: Ie112d79946b165283c900b420045aedf1b4d8673 Signed-off-by: Robert Varga --- .../mdsal/binding/dom/codec/impl/Mdsal552Test.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/binding/mdsal-binding-dom-codec/src/test/java/org/opendaylight/mdsal/binding/dom/codec/impl/Mdsal552Test.java b/binding/mdsal-binding-dom-codec/src/test/java/org/opendaylight/mdsal/binding/dom/codec/impl/Mdsal552Test.java index 73ebdf9499..99c07a5783 100644 --- a/binding/mdsal-binding-dom-codec/src/test/java/org/opendaylight/mdsal/binding/dom/codec/impl/Mdsal552Test.java +++ b/binding/mdsal-binding-dom-codec/src/test/java/org/opendaylight/mdsal/binding/dom/codec/impl/Mdsal552Test.java @@ -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)) -- 2.36.6