package com.kodroid.pilot.lib.android;

import com.kodroid.pilot.lib.stack.PilotStack;
import com.kodroid.pilot.lib.stack.PilotStackTest;

import org.junit.Test;

public class PilotLifecycleManagerTest
{
    @Test(expected= IllegalStateException.class)
    public void onCreateDelegate_stackWithNoVisibleFrames_shouldThrow()
    {
        PilotStack pilotStack = new PilotStack();
        pilotStack.pushFrame(PilotStackTest.TestInvisibleDataFrame.class);
        PilotLifecycleManager pilotLifecycleManager = new PilotLifecycleManager(pilotStack, null);
        pilotLifecycleManager.onCreateDelegate(null, null, null);
    }
}
@@ -540,16 +540,34 @@
 otStack,
+ null, null, null,
  null);%0A
@@ -613,28 +613,16 @@
 elegate(
-null, null, 
 null);%0A 

fix tests