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