diff options
author | kuzukami.sh <kuzukami+gihub@altpaper.net> | 2015-07-13 16:55:01 +0900 |
---|---|---|
committer | kuzukami.sh <kuzukami+git@altpaper.net> | 2015-08-11 01:18:29 +0900 |
commit | 2d0d143c0b20b814faed4428916fc06848bdca60 (patch) | |
tree | 95f8b9865306879631a3fdddf277d0a9a672f965 /src/test | |
parent | 1e7ce2aebcae694222c16ba1f8f22cfdc4b2eba6 (diff) | |
download | javassist-2d0d143c0b20b814faed4428916fc06848bdca60.tar.gz javassist-2d0d143c0b20b814faed4428916fc06848bdca60.zip |
append an new API of hasAnnotation(String annotClsName)
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/javassist/JvstTest4.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/javassist/JvstTest4.java b/src/test/javassist/JvstTest4.java index 549102f0..ac4c1e3b 100644 --- a/src/test/javassist/JvstTest4.java +++ b/src/test/javassist/JvstTest4.java @@ -101,6 +101,10 @@ public class JvstTest4 extends JvstTestRoot { assertTrue(cc.hasAnnotation(test4.Anno1.class)); assertFalse(cc.hasAnnotation(java.lang.annotation.Documented.class)); + + assertTrue(cc.hasAnnotation(test4.Anno1.class.getName())); + assertFalse(cc.hasAnnotation(java.lang.annotation.Documented.class.getName())); + assertEquals("empty", ((test4.Anno1)cc.getAnnotation(test4.Anno1.class)).value()); assertNull(cc.getAnnotation(Deprecated.class)); |