mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
add test
This commit is contained in:
parent
c978dcc73b
commit
1542b02771
@ -4,15 +4,18 @@ import org.junit.Assert;
|
|||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
public class AnnotationUtilTest {
|
public class AnnotationUtilTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
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…
x
Reference in New Issue
Block a user