View Javadoc
1   package org.codehaus.plexus.compiler.ajc;
2   
3   import java.io.File;
4   import java.util.Arrays;
5   import java.util.Collection;
6   import java.util.List;
7   
8   import org.codehaus.plexus.compiler.AbstractCompilerTest;
9   
10  /**
11   * @author <a href="mailto:jason@plexus.org">Jason van Zyl</a>
12   */
13  public class AspectJCompilerTest
14      extends AbstractCompilerTest
15  {
16      public AspectJCompilerTest()
17      {
18          super();
19      }
20  
21      protected String getRoleHint()
22      {
23          return "aspectj";
24      }
25  
26      protected int expectedErrors()
27      {
28          return 1;
29      }
30  
31      protected Collection<String> expectedOutputFiles()
32      {
33          return Arrays.asList( new String[]{ "org/codehaus/foo/ExternalDeps.class", "org/codehaus/foo/Person.class" } );
34      }
35  
36      protected List<String> getClasspath()
37          throws Exception
38      {
39          List<String> cp = super.getClasspath();
40  
41          File localArtifactPath =
42              getLocalArtifactPath( "org.aspectj", "aspectjrt", System.getProperty( "aspectj.version" ), "jar" );
43          cp.add( localArtifactPath.getAbsolutePath() );
44  
45          return cp;
46      }
47  
48  }