package com.onion.tests;

import com.onion.tests.support.BaseEngineTest;
import com.onion.tests.support.LifecycleAssertingComponent;

import org.junit.Test;

/**
 * Created by Jakub Petriska on 19. 2. 2015.
 */
public class ComponentLifecycleTest extends BaseEngineTest {

    private static final String FILES_FOLDER = "component_lifecycle_test";

    @Override
    protected String getFilesFolder() {
        return FILES_FOLDER;
    }

    @Test
    public void basicComponentLifecycleTest() {
        getEngine().onStart();
        for(int i = 0; i < 10; ++i) {
            getEngine().onUpdate();
        }
        getEngine().onFinish();

        LifecycleAssertingComponent.checkObjectsInCacheAreOk();
    }

}

@@ -447,24 +447,311 @@
 ;%0D%0A    %7D%0D%0A%0D%0A
+    /**%0D%0A     * Basic test of component lifecycle.%0D%0A     *%0D%0A     * Uses LifecycleAssertingComponent in the scene with 3 objects.%0D%0A     * The two objects are children of the first object. All objects only%0D%0A     * have a single component a LifecycleAssertingComponent component.%0D%0A     */%0D%0A
     @Test%0D%0A 

test comment added