Skip to content

Commit 9eb4e7b

Browse files
committed
Update MethodHandleUtilsTest.java
1 parent 2a63983 commit 9eb4e7b

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

microsphere-java-core/src/test/java/io/microsphere/invoke/MethodHandleUtilsTest.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
*/
1717
package io.microsphere.invoke;
1818

19+
import io.microsphere.junit.jupiter.api.extension.annotation.UtilsTestExtension;
1920
import org.junit.jupiter.api.Test;
2021

2122
import java.lang.invoke.MethodHandle;
@@ -27,21 +28,16 @@
2728
import static io.microsphere.invoke.MethodHandlesLookupUtils.NOT_FOUND_METHOD_HANDLE;
2829
import static org.junit.jupiter.api.Assertions.assertEquals;
2930
import 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
3839
public 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);

0 commit comments

Comments
 (0)