Search in sources :

Example 11 with LinkageProblem

use of com.google.cloud.tools.opensource.classpath.LinkageProblem 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

LinkageProblem (com.google.cloud.tools.opensource.classpath.LinkageProblem)11 ClassPathEntry (com.google.cloud.tools.opensource.classpath.ClassPathEntry)7 ClassPathResult (com.google.cloud.tools.opensource.classpath.ClassPathResult)5 DefaultArtifact (org.eclipse.aether.artifact.DefaultArtifact)5 LinkageChecker (com.google.cloud.tools.opensource.classpath.LinkageChecker)4 DependencyPath (com.google.cloud.tools.opensource.dependencies.DependencyPath)4 Path (java.nio.file.Path)4 ClassFile (com.google.cloud.tools.opensource.classpath.ClassFile)3 ClassPathBuilder (com.google.cloud.tools.opensource.classpath.ClassPathBuilder)3 Artifact (org.eclipse.aether.artifact.Artifact)3 AnnotatedClassPath (com.google.cloud.tools.opensource.classpath.AnnotatedClassPath)2 Bom (com.google.cloud.tools.opensource.dependencies.Bom)2 VisibleForTesting (com.google.common.annotations.VisibleForTesting)2 Test (org.junit.Test)2 ClassNotFoundProblem (com.google.cloud.tools.opensource.classpath.ClassNotFoundProblem)1 ClassReferenceGraph (com.google.cloud.tools.opensource.classpath.ClassReferenceGraph)1 ClassSymbol (com.google.cloud.tools.opensource.classpath.ClassSymbol)1 DependencyMediation (com.google.cloud.tools.opensource.classpath.DependencyMediation)1 GradleDependencyMediation (com.google.cloud.tools.opensource.classpath.GradleDependencyMediation)1 DependencyGraphBuilder (com.google.cloud.tools.opensource.dependencies.DependencyGraphBuilder)1