This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit d931a0bfc2e44f15e5d547b53c1f3f96c52250c3 Author: Otavio Rodolfo Piske <angusyo...@gmail.com> AuthorDate: Fri Apr 8 16:04:35 2022 +0200 CAMEL-17763: cleanup unused exceptions in camel-xmlsecurity --- .../component/xmlsecurity/XAdESSignaturePropertiesTest.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/components/camel-xmlsecurity/src/test/java/org/apache/camel/component/xmlsecurity/XAdESSignaturePropertiesTest.java b/components/camel-xmlsecurity/src/test/java/org/apache/camel/component/xmlsecurity/XAdESSignaturePropertiesTest.java index a9938c734ea..787ccd553da 100644 --- a/components/camel-xmlsecurity/src/test/java/org/apache/camel/component/xmlsecurity/XAdESSignaturePropertiesTest.java +++ b/components/camel-xmlsecurity/src/test/java/org/apache/camel/component/xmlsecurity/XAdESSignaturePropertiesTest.java @@ -35,7 +35,6 @@ import javax.xml.crypto.dsig.DigestMethod; import javax.xml.crypto.dsig.XMLSignature; import javax.xml.crypto.dsig.spec.XPathFilterParameterSpec; import javax.xml.namespace.NamespaceContext; -import javax.xml.parsers.ParserConfigurationException; import javax.xml.transform.Source; import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamSource; @@ -51,7 +50,6 @@ import javax.xml.xpath.XPathFactory; import org.w3c.dom.Document; import org.w3c.dom.Node; -import org.xml.sax.SAXException; import org.apache.camel.Exchange; import org.apache.camel.Message; @@ -852,19 +850,19 @@ public class XAdESSignaturePropertiesTest extends CamelTestSupport { } private Document testEnveloping() - throws InterruptedException, SAXException, IOException, ParserConfigurationException, Exception { + throws Exception { return testEnveloping("direct:enveloping"); } protected Document testEnveloping(String fromUri) - throws InterruptedException, SAXException, IOException, ParserConfigurationException, + throws Exception { return testEnveloping(fromUri, Collections.<String, Object> emptyMap()); } protected Document testEnveloping(String fromUri, Map<String, Object> headers) - throws InterruptedException, SAXException, IOException, - ParserConfigurationException, Exception { + throws + Exception { MockEndpoint mock = setupMock(); sendBody(fromUri, payload, headers); assertMockEndpointsSatisfied();