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 99import static io .microsphere .management .ManagementUtils .getCurrentProcessId ;
1010import static io .microsphere .process .ProcessIdResolver .UNKNOWN_PROCESS_ID ;
1111import static io .microsphere .util .ServiceLoaderUtils .loadServicesList ;
12- import static org .junit .jupiter .api .Assertions .assertThrows ;
1312import static org .junit .jupiter .api .Assertions .assertTrue ;
1413
1514/**
2120 */
2221public 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 }
You can’t perform that action at this time.
0 commit comments