File tree Expand file tree Collapse file tree
microsphere-java-core/src/test/java/io/microsphere/management Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717package io .microsphere .management ;
1818
1919import io .microsphere .AbstractTestCase ;
20+ import io .microsphere .junit .jupiter .api .extension .annotation .UtilsTestExtension ;
2021import org .junit .jupiter .api .BeforeAll ;
2122import org .junit .jupiter .api .Test ;
2223
5455import static org .junit .jupiter .api .Assertions .assertNotNull ;
5556import static org .junit .jupiter .api .Assertions .assertNull ;
5657import static org .junit .jupiter .api .Assertions .assertSame ;
57- import static org .junit .jupiter .api .Assertions .assertThrows ;
5858import static org .junit .jupiter .api .Assertions .assertTrue ;
5959
6060/**
6363 * @author <a href="mailto:mercyblitz@gmail.com">Mercy</a>
6464 * @since 1.0.0
6565 */
66+ @ UtilsTestExtension
6667public 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 );
You can’t perform that action at this time.
0 commit comments