use of spoon.test.type.testclasses.Mole in project spoon by INRIA.
the class TypeTest method testIntersectionTypeOnTopLevelType.
@Test
public void testIntersectionTypeOnTopLevelType() throws Exception {
final CtType<Mole> aMole = buildClass(Mole.class);
assertEquals(1, aMole.getFormalCtTypeParameters().size());
// New type parameter declaration.
final CtTypeParameter typeParameter = aMole.getFormalCtTypeParameters().get(0);
assertIntersectionTypeForMole(aMole, typeParameter.getSuperclass());
}
Aggregations