@@ -0,0 +1,1282 @@
+package cn.six.robolectric.inject;%0A%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.Mock;%0Aimport org.mockito.MockitoAnnotations;%0Aimport org.robolectric.Robolectric;%0Aimport org.robolectric.RobolectricTestRunner;%0Aimport org.robolectric.annotation.Config;%0Aimport org.robolectric.util.ActivityController;%0A%0Aimport cn.six.espresso.aut.BuildConfig;%0A%0Aimport static junit.framework.Assert.assertEquals;%0A%0A@RunWith(RobolectricTestRunner.class)%0A@Config(constants = BuildConfig.class, sdk = 21)%0Apublic class LifeInjectActivityTest %7B%0A    @Mock%0A    ILifePresenter presenter;%0A    private LifeInjectActivity actv;%0A    private ActivityController%3CLifeInjectActivity%3E actvController;%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        MockitoAnnotations.initMocks(this);%0A%0A        actvController = Robolectric.buildActivity(LifeInjectActivity.class);%0A        actv = actvController.get();%0A    %7D%0A%0A    @Test%0A    public void testNoInject_everythingIsNormal() %7B%0A        assertEquals(null, actv.stage);%0A%0A        actvController.create();%0A        assertEquals(%22refresh: presenter name%22, actv.stage);%0A%0A    %7D%0A%0A    @Test%0A    public void testLifeInjectIsSuccessful() %7B%0A        actv.setPresenter(presenter);%0A%0A        actvController.create();%0A    %7D%0A%7D%0A

add test for injection of presenter