use of spoon.test.position.testclasses.Foo in project spoon by INRIA.
the class PositionTest method defaultConstructorPositionTest.
@Test
public void defaultConstructorPositionTest() throws Exception {
CtClass<Foo> aClass = (CtClass<Foo>) buildClass(Foo.class);
CtConstructor<Foo> defaultConstructor = aClass.getConstructor();
assertEquals(SourcePosition.NOPOSITION, defaultConstructor.getPosition());
CtStatement implicitSuperCall = defaultConstructor.getBody().getStatement(0);
assertTrue(implicitSuperCall.isImplicit());
assertEquals(SourcePosition.NOPOSITION, implicitSuperCall.getPosition());
}
Aggregations