use of spoon.reflect.code.CtCFlowBreak in project spoon by INRIA.
the class FilterTest method testReturnOrThrowFilter.
@Test
public void testReturnOrThrowFilter() throws Exception {
CtClass<?> foo = factory.Package().get("spoon.test.filters").getType("Foo");
assertEquals("Foo", foo.getSimpleName());
List<CtCFlowBreak> expressions = foo.getElements(new ReturnOrThrowFilter());
assertEquals(2, expressions.size());
}
Aggregations