Search in sources :

Example 1 with MethodSymbol

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

the class LinkageMonitorTest method setup.

@Before
public void setup() throws IOException {
    system = RepositoryUtility.newRepositorySystem();
    session = RepositoryUtility.newSession(system);
    methodNotFoundProblemFromA = new SymbolNotFoundProblem(new ClassFile(jarA, "com.abc.AAA"), new ClassFile(jarB, "io.grpc.protobuf.ProtoUtils"), new MethodSymbol("io.grpc.protobuf.ProtoUtils", "marshaller", "(Lcom/google/protobuf/Message;)Lio/grpc/MethodDescriptor$Marshaller;", false));
    methodNotFoundProblemFromB = new SymbolNotFoundProblem(new ClassFile(jarA, "com.abc.BBB"), new ClassFile(jarB, "io.grpc.protobuf.ProtoUtils"), new MethodSymbol("io.grpc.protobuf.ProtoUtils", "marshaller", "(Lcom/google/protobuf/Message;)Lio/grpc/MethodDescriptor$Marshaller;", false));
}
Also used : ClassFile(com.google.cloud.tools.opensource.classpath.ClassFile) MethodSymbol(com.google.cloud.tools.opensource.classpath.MethodSymbol) SymbolNotFoundProblem(com.google.cloud.tools.opensource.classpath.SymbolNotFoundProblem) Before(org.junit.Before)

Aggregations

ClassFile (com.google.cloud.tools.opensource.classpath.ClassFile)1 MethodSymbol (com.google.cloud.tools.opensource.classpath.MethodSymbol)1 SymbolNotFoundProblem (com.google.cloud.tools.opensource.classpath.SymbolNotFoundProblem)1 Before (org.junit.Before)1