Search in sources :

Example 1 with Updatable

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);
}
Also used : Updatable(com.b3dgs.lionengine.Updatable) Test(org.junit.jupiter.api.Test)

Aggregations

Updatable (com.b3dgs.lionengine.Updatable)1 Test (org.junit.jupiter.api.Test)1