[jboss-cvs] jbossretro/src/test/org/jboss/test/annotations ...
Kabir Khan
kkhan at jboss.com
Mon Jul 17 04:38:12 EDT 2006
User: kkhan
Date: 06/07/17 04:38:12
Modified: src/test/org/jboss/test/annotations
AnnotationsTestCase.java
Log:
Redirect Class.isAnnotation()
Revision Changes Path
1.6 +2 -0 jbossretro/src/test/org/jboss/test/annotations/AnnotationsTestCase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: AnnotationsTestCase.java
===================================================================
RCS file: /cvsroot/jboss/jbossretro/src/test/org/jboss/test/annotations/AnnotationsTestCase.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- AnnotationsTestCase.java 16 Mar 2006 14:22:43 -0000 1.5
+++ AnnotationsTestCase.java 17 Jul 2006 08:38:12 -0000 1.6
@@ -40,6 +40,8 @@
{
ClassLoader loader = Thread.currentThread().getContextClassLoader();
Class annotatedClass = loader.loadClass("org.jboss.test.annotations.TestWebService");
+ Class ann = loader.loadClass("org.jboss.test.annotations.j2ee.jws.TestAnnotation");
+ assertTrue(ann.isAnnotation());
Class webservice = WebService.class;
assertTrue("TestWebService has WebService annotation", annotatedClass.isAnnotationPresent(webservice));
WebService anWebService = (WebService) annotatedClass.getAnnotation(webservice);
More information about the jboss-cvs-commits
mailing list