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
12
13 public class AspectJCompilerTest extends AbstractCompilerTest {
14 public AspectJCompilerTest() {
15 super();
16 }
17
18 @Override
19 protected String getRoleHint() {
20 return "aspectj";
21 }
22
23 @Override
24 protected Collection<String> expectedOutputFiles() {
25 return Arrays.asList("org/codehaus/foo/ExternalDeps.class", "org/codehaus/foo/Person.class");
26 }
27
28 @Override
29 protected List<String> getClasspath() throws Exception {
30 List<String> classpath = super.getClasspath();
31 String aspectjVersion = System.getProperty("aspectj.version");
32 File aspectjRuntime = getLocalArtifactPath("org.aspectj", "aspectjrt", aspectjVersion, "jar");
33 classpath.add(aspectjRuntime.getAbsolutePath());
34 return classpath;
35 }
36 }