Skip to content

Commit f5366b4

Browse files
committed
Update JmxUtilsTest.java
1 parent b1a87fd commit f5366b4

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

microsphere-java-core/src/test/java/io/microsphere/management/JmxUtilsTest.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package io.microsphere.management;
1818

1919
import io.microsphere.AbstractTestCase;
20+
import io.microsphere.junit.jupiter.api.extension.annotation.UtilsTestExtension;
2021
import org.junit.jupiter.api.BeforeAll;
2122
import org.junit.jupiter.api.Test;
2223

@@ -54,7 +55,6 @@
5455
import static org.junit.jupiter.api.Assertions.assertNotNull;
5556
import static org.junit.jupiter.api.Assertions.assertNull;
5657
import static org.junit.jupiter.api.Assertions.assertSame;
57-
import static org.junit.jupiter.api.Assertions.assertThrows;
5858
import static org.junit.jupiter.api.Assertions.assertTrue;
5959

6060
/**
@@ -63,6 +63,7 @@
6363
* @author <a href="mailto:mercyblitz@gmail.com">Mercy</a>
6464
* @since 1.0.0
6565
*/
66+
@UtilsTestExtension
6667
public class JmxUtilsTest extends AbstractTestCase {
6768

6869
private static MBeanServer mBeanServer;
@@ -81,11 +82,6 @@ public static void init() throws Throwable {
8182
notFoundAttributeName = "NotFound";
8283
}
8384

84-
@Test
85-
public void testConstructor() {
86-
assertThrows(IllegalStateException.class, () -> new JmxUtils() {});
87-
}
88-
8985
@Test
9086
public void testGetClassLoadingMXBean() throws Throwable {
9187
assertPlatformMXBean(getClassLoadingMXBean(), CLASS_LOADING_MXBEAN_NAME);

0 commit comments

Comments
 (0)