mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-05 21:28:00 +08:00
add test
This commit is contained in:
parent
c978dcc73b
commit
1542b02771
@ -9,10 +9,13 @@ public class AnnotationUtilTest {
|
||||
public void getAnnotationValueTest() {
|
||||
Object value = AnnotationUtil.getAnnotationValue(ClassWithAnnotation.class, AnnotationForTest.class);
|
||||
Assert.assertEquals("测试", value);
|
||||
|
||||
}
|
||||
|
||||
@AnnotationForTest("测试")
|
||||
static class ClassWithAnnotation{
|
||||
public void test(){
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user