Search in sources :

Example 1 with ClassNotFoundProblem

use of com.google.cloud.tools.opensource.classpath.ClassNotFoundProblem in project cloud-opensource-java by GoogleCloudPlatform.

the class FreemarkerTest method setUp.

@Before
public void setUp() {
    Artifact artifact = new DefaultArtifact("com.google:foo:1.0.0").setFile(new File("foo/bar-1.2.3.jar"));
    ClassPathEntry entry = new ClassPathEntry(artifact);
    ImmutableSet<LinkageProblem> dummyProblems = ImmutableSet.of(new ClassNotFoundProblem(new ClassFile(entry, "abc.def.G"), new ClassSymbol("com.foo.Bar")));
    symbolProblemTable = ImmutableMap.of(entry, dummyProblems);
}
Also used : LinkageProblem(com.google.cloud.tools.opensource.classpath.LinkageProblem) ClassFile(com.google.cloud.tools.opensource.classpath.ClassFile) ClassNotFoundProblem(com.google.cloud.tools.opensource.classpath.ClassNotFoundProblem) ClassSymbol(com.google.cloud.tools.opensource.classpath.ClassSymbol) ClassFile(com.google.cloud.tools.opensource.classpath.ClassFile) File(java.io.File) DefaultArtifact(org.eclipse.aether.artifact.DefaultArtifact) Artifact(org.eclipse.aether.artifact.Artifact) DefaultArtifact(org.eclipse.aether.artifact.DefaultArtifact) ClassPathEntry(com.google.cloud.tools.opensource.classpath.ClassPathEntry) Before(org.junit.Before)

Aggregations

ClassFile (com.google.cloud.tools.opensource.classpath.ClassFile)1 ClassNotFoundProblem (com.google.cloud.tools.opensource.classpath.ClassNotFoundProblem)1 ClassPathEntry (com.google.cloud.tools.opensource.classpath.ClassPathEntry)1 ClassSymbol (com.google.cloud.tools.opensource.classpath.ClassSymbol)1 LinkageProblem (com.google.cloud.tools.opensource.classpath.LinkageProblem)1 File (java.io.File)1 Artifact (org.eclipse.aether.artifact.Artifact)1 DefaultArtifact (org.eclipse.aether.artifact.DefaultArtifact)1 Before (org.junit.Before)1