use of spoon.reflect.path.CtPathBuilder in project spoon by INRIA.
the class PathTest method testBuilderMethod.
@Test
public void testBuilderMethod() throws Exception {
equalsSet(new CtPathBuilder().name("spoon").name("test").name("path").name("Foo").type(CtMethod.class).build(), factory.Type().get("spoon.test.path.Foo").getMethods());
equalsSet(new CtPathStringBuilder().fromString(".spoon.test.path.Foo/CtMethod"), factory.Type().get("spoon.test.path.Foo").getMethods());
}
Aggregations