use of spoon.reflect.visitor.filter.ReturnOrThrowFilter 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