Skip to content

Commit 3e24bfd

Browse files
committed
Update ManagementUtilsTest.java
1 parent fa812c0 commit 3e24bfd

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import static io.microsphere.management.ManagementUtils.getCurrentProcessId;
1010
import static io.microsphere.process.ProcessIdResolver.UNKNOWN_PROCESS_ID;
1111
import static io.microsphere.util.ServiceLoaderUtils.loadServicesList;
12-
import static org.junit.jupiter.api.Assertions.assertThrows;
1312
import static org.junit.jupiter.api.Assertions.assertTrue;
1413

1514
/**
@@ -21,11 +20,6 @@
2120
*/
2221
public class ManagementUtilsTest extends AbstractTestCase {
2322

24-
@Test
25-
public void testConstructor() {
26-
assertThrows(IllegalStateException.class, () -> new ManagementUtils(){});
27-
}
28-
2923
@Test
3024
public void testGetCurrentProcessId() {
3125
long currentProcessId = getCurrentProcessId();
@@ -35,7 +29,7 @@ public void testGetCurrentProcessId() {
3529
@Test
3630
public void testLog() {
3731
List<ProcessIdResolver> resolvers = loadServicesList(ProcessIdResolver.class);
38-
for(ProcessIdResolver resolver : resolvers){
32+
for (ProcessIdResolver resolver : resolvers) {
3933
ManagementUtils.log(resolver, UNKNOWN_PROCESS_ID);
4034
}
4135
}

0 commit comments

Comments
 (0)