// Path: app/src/debug/java/com/newegg/tr/dagger2prac/view/component/MainComponent.java
// @Singleton
// @Component(
//         modules = TestMainModule.class
// )
// public interface MainComponent {
// 
//     void inject(MainActivity activity);
// 
//     void inject(MainTestCase testCase);
// 
//     public class Initializer {
// 
//         public static MainComponent mInstance;
// 
//         public static MainComponent init(Application app, MainPageView view) {
// 
//             MainComponent component = Dagger_MainComponent.builder()
//                     .testMainModule(new TestMainModule(view))
//                     .build();
//             mInstance = component;
//             return component;
//         }
//     }
// 
// }
// 
// Path: app/src/debug/java/com/newegg/tr/dagger2prac/view/MainTestCase.java
// public class MainTestCase extends ActivityInstrumentationTestCase2<MainActivity> {
// 
//     @Inject
//     protected Action mMockAction;
// 
//     public MainTestCase() {
//         super(MainActivity.class);
//     }
// 
// 
// }


import android.test.suitebuilder.annotation.LargeTest;
import com.newegg.tr.dagger2prac.R;
import com.newegg.tr.dagger2prac.view.component.MainComponent;
import com.newegg.tr.dagger2prac.view.MainTestCase;
import static android.support.test.espresso.Espresso.onView;
import static android.support.test.espresso.Espresso.openActionBarOverflowOrOptionsMenu;
import static android.support.test.espresso.action.ViewActions.clearText;
import static android.support.test.espresso.action.ViewActions.click;
import static android.support.test.espresso.action.ViewActions.typeText;
import static android.support.test.espresso.assertion.ViewAssertions.matches;
import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;
import static android.support.test.espresso.matcher.ViewMatchers.withId;
import static android.support.test.espresso.matcher.ViewMatchers.withText;
import static org.mockito.Mockito.anyInt;
import static org.mockito.Mockito.when;
package com.newegg.tr.dagger2prac.ui;




/**
 * Created by william on 15/2/3.
 */

@LargeTest
public class MainActivityTest extends MainTestCase {



    @Override
    protected void setUp() throws Exception {
        super.setUp();
        getActivity();
// Path: app/src/debug/java/com/newegg/tr/dagger2prac/view/component/MainComponent.java
// @Singleton
// @Component(
//         modules = TestMainModule.class
// )
// public interface MainComponent {
// 
//     void inject(MainActivity activity);
// 
//     void inject(MainTestCase testCase);
// 
//     public class Initializer {
// 
//         public static MainComponent mInstance;
// 
//         public static MainComponent init(Application app, MainPageView view) {
// 
//             MainComponent component = Dagger_MainComponent.builder()
//                     .testMainModule(new TestMainModule(view))
//                     .build();
//             mInstance = component;
//             return component;
//         }
//     }
// 
// }
// 
// Path: app/src/debug/java/com/newegg/tr/dagger2prac/view/MainTestCase.java
// public class MainTestCase extends ActivityInstrumentationTestCase2<MainActivity> {
// 
//     @Inject
//     protected Action mMockAction;
// 
//     public MainTestCase() {
//         super(MainActivity.class);
//     }
// 
// 
// }


// Path: app/src/androidTest/java/com/newegg/tr/dagger2prac/ui/MainActivityTest.java
import android.test.suitebuilder.annotation.LargeTest;
import com.newegg.tr.dagger2prac.R;
import com.newegg.tr.dagger2prac.view.component.MainComponent;
import com.newegg.tr.dagger2prac.view.MainTestCase;
import static android.support.test.espresso.Espresso.onView;
import static android.support.test.espresso.Espresso.openActionBarOverflowOrOptionsMenu;
import static android.support.test.espresso.action.ViewActions.clearText;
import static android.support.test.espresso.action.ViewActions.click;
import static android.support.test.espresso.action.ViewActions.typeText;
import static android.support.test.espresso.assertion.ViewAssertions.matches;
import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;
import static android.support.test.espresso.matcher.ViewMatchers.withId;
import static android.support.test.espresso.matcher.ViewMatchers.withText;
import static org.mockito.Mockito.anyInt;
import static org.mockito.Mockito.when;

package com.newegg.tr.dagger2prac.ui;




/**
 * Created by william on 15/2/3.
 */

@LargeTest
public class MainActivityTest extends MainTestCase {



    @Override
    protected void setUp() throws Exception {
        super.setUp();
        getActivity();
        MainComponent.Initializer.mInstance.inject(this);