Search in sources :

Example 1 with CtPathBuilder

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());
}
Also used : CtPathStringBuilder(spoon.reflect.path.CtPathStringBuilder) CtPathBuilder(spoon.reflect.path.CtPathBuilder) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 CtPathBuilder (spoon.reflect.path.CtPathBuilder)1 CtPathStringBuilder (spoon.reflect.path.CtPathStringBuilder)1