* configurable ignored packages
[scannotation] / src / test / java / org / scannotation / test / TestSmoke.java
index 8a9331d..cb8b842 100644 (file)
@@ -7,6 +7,7 @@ import org.scannotation.AnnotationDB;
 import org.scannotation.ClasspathUrlFinder;
 
 import java.io.IOException;
+import java.io.PrintWriter;
 import java.net.URL;
 import java.util.Map;
 import java.util.Set;
@@ -108,6 +109,18 @@ public class TestSmoke
    }
 
 
+   @Test
+   public void testCrossRefMetaAnnotations() throws Exception
+   {
+      URL url = ClasspathUrlFinder.findClassBase(TestSmoke.class);
+      AnnotationDB db = new AnnotationDB();
+      db.scanArchives(url);
+      db.crossReferenceMetaAnnotations();
+
+      Assert.assertTrue(db.getAnnotationIndex().get(MetaAnnotation.class.getName()).contains(CrossRefMetaAnnotaiton.class.getName()));
+   }
+
+
    @Test
    public void testByClass() throws Exception
    {