1.0.3
[scannotation] / src / test / java / org / scannotation / test / TestSmoke.java
index 8a9331d..e8daddd 100644 (file)
@@ -1,12 +1,13 @@
 package org.scannotation.test;
 
-import com.titan.domain.Address;
+//import com.titan.domain.Address;
 import org.junit.Assert;
 import org.junit.Test;
 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;
@@ -18,6 +19,7 @@ import java.util.Set;
 public class TestSmoke
 {
 
+/*
    @Test
    public void testFindResourceBase() throws Exception
    {
@@ -25,7 +27,9 @@ public class TestSmoke
       Assert.assertNotNull(url);
       verify(url);
    }
+*/
 
+/*
    @Test
    public void testFindResourceBases() throws Exception
    {
@@ -33,6 +37,7 @@ public class TestSmoke
       Assert.assertNotNull(urls);
       verify(urls);
    }
+*/
 
    @Test
    public void testFindClasspaths() throws Exception
@@ -108,6 +113,19 @@ 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
    {
@@ -115,6 +133,7 @@ public class TestSmoke
       Assert.assertNotNull(url);
       verify(url);
    }
+*/
 
 
    private AnnotationDB verify(URL... urls)