use of com.b3dgs.lionengine.Updatable in project lionengine by b3dgs.
the class HandlablesImplTest method testFeatureComplex.
/**
* Test type with complex object manipulation.
*/
@Test
void testFeatureComplex() {
final Featurable complex = new ObjectComplex(services, setup);
complex.addFeature(new MirrorableModel(services, setup));
complex.addFeature(new TransformableModel(services, setup));
featurables.add(complex);
int i = 0;
for (final Updatable updatable : featurables.get(Updatable.class)) {
assertEquals(complex, updatable);
i++;
}
assertEquals(1, i);
}