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 8c2c89964bfb20e894b2d3154874b618d1d26eab
Author: Otavio Rodolfo Piske <angusyo...@gmail.com>
AuthorDate: Tue May 31 14:57:55 2022 +0200

    (chores) camel-jmx: ensure tests have at least 1 assertion
---
 .../apache/camel/component/jmx/JMXObjectPropertiesTest.java    | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git 
a/components/camel-jmx/src/test/java/org/apache/camel/component/jmx/JMXObjectPropertiesTest.java
 
b/components/camel-jmx/src/test/java/org/apache/camel/component/jmx/JMXObjectPropertiesTest.java
index 7fbc1e57e17..75acd9ad0ac 100644
--- 
a/components/camel-jmx/src/test/java/org/apache/camel/component/jmx/JMXObjectPropertiesTest.java
+++ 
b/components/camel-jmx/src/test/java/org/apache/camel/component/jmx/JMXObjectPropertiesTest.java
@@ -19,16 +19,24 @@ package org.apache.camel.component.jmx;
 import java.util.Hashtable;
 import java.util.Map;
 
+import javax.management.MalformedObjectNameException;
+
 import org.apache.camel.component.jmx.beans.ISimpleMXBean;
 import org.junit.jupiter.api.Test;
 
+import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
+
 /**
  * Tests that the objectName is created with the hashtable of objectProperties
  */
 public class JMXObjectPropertiesTest extends SimpleBeanFixture {
 
     @Test
-    public void testObjectProperties() throws Exception {
+    public void testObjectProperties() {
+        assertDoesNotThrow(() -> doTestObjectProperties());
+    }
+
+    private void doTestObjectProperties() throws MalformedObjectNameException, 
InterruptedException {
         ISimpleMXBean bean = getSimpleMXBean();
         bean.touch();
         getMockFixture().waitForMessages();

Reply via email to