use of com.examples.with.different.packagename.staticusage.FooBar2 in project evosuite by EvoSuite.
the class TestPutStaticCollector method testFooBar1.
@Test
public void testFooBar1() {
String className = FooBar1.class.getName();
PutStaticMethodCollector collector = new PutStaticMethodCollector(className);
MethodIdentifier expected_method_id = new MethodIdentifier(FooBar2.class.getName(), "init_used_int_field", Type.getMethodDescriptor(Type.VOID_TYPE));
Set<MethodIdentifier> expected_methods = Collections.singleton(expected_method_id);
Set<MethodIdentifier> methods = collector.collectMethods();
assertEquals(expected_methods, methods);
}
Aggregations