Search in sources :

Example 1 with FooBar2

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);
}
Also used : MethodIdentifier(org.evosuite.setup.PutStaticMethodCollector.MethodIdentifier) FooBar2(com.examples.with.different.packagename.staticusage.FooBar2) Test(org.junit.Test)

Aggregations

FooBar2 (com.examples.with.different.packagename.staticusage.FooBar2)1 MethodIdentifier (org.evosuite.setup.PutStaticMethodCollector.MethodIdentifier)1 Test (org.junit.Test)1