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