File tree Expand file tree Collapse file tree
microsphere-java-core/src/test/java/io/microsphere/invoke Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 */
1717package io .microsphere .invoke ;
1818
19+ import io .microsphere .junit .jupiter .api .extension .annotation .UtilsTestExtension ;
1920import org .junit .jupiter .api .Test ;
2021
2122import java .lang .invoke .MethodHandle ;
2728import static io .microsphere .invoke .MethodHandlesLookupUtils .NOT_FOUND_METHOD_HANDLE ;
2829import static org .junit .jupiter .api .Assertions .assertEquals ;
2930import static org .junit .jupiter .api .Assertions .assertSame ;
30- import static org .junit .jupiter .api .Assertions .assertThrows ;
3131
3232/**
3333 * {@link MethodHandleUtils} Test
3434 *
3535 * @author <a href="mailto:mercyblitz@gmail.com">Mercy</a>
3636 * @since 1.0.0
3737 */
38+ @ UtilsTestExtension
3839public class MethodHandleUtilsTest {
3940
40- @ Test
41- public void testConstructor () {
42- assertThrows (IllegalStateException .class , () -> new MethodHandleUtils () {});
43- }
44-
4541 @ Test
4642 public void testLookup () {
4743 MethodHandles .Lookup lookup = lookup (String .class );
You can’t perform that action at this time.
0 commit comments