// Path: app/src/androidTest/java/apidez/com/android_mvvm_sample/TestApplication.java
// public class TestApplication extends MyApplication {
//     public void setComponent(AppComponent appComponent) {
//         this.mAppComponent = appComponent;
//     }
// 
//     public void setComponentBuilder(ComponentBuilder componentBuilder) {
//         this.mComponentBuilder = componentBuilder;
//     }
// }


import android.app.Instrumentation;
import android.support.test.InstrumentationRegistry;
import apidez.com.android_mvvm_sample.TestApplication;
package apidez.com.android_mvvm_sample.utils;



/**
 * Created by nongdenchet on 10/22/15.
 */
public class ApplicationUtils {
    public static TestApplication application() {
        Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation();
// Path: app/src/androidTest/java/apidez/com/android_mvvm_sample/TestApplication.java
// public class TestApplication extends MyApplication {
//     public void setComponent(AppComponent appComponent) {
//         this.mAppComponent = appComponent;
//     }
// 
//     public void setComponentBuilder(ComponentBuilder componentBuilder) {
//         this.mComponentBuilder = componentBuilder;
//     }
// }


// Path: app/src/androidTest/java/apidez/com/android_mvvm_sample/utils/ApplicationUtils.java
import android.app.Instrumentation;
import android.support.test.InstrumentationRegistry;
import apidez.com.android_mvvm_sample.TestApplication;

package apidez.com.android_mvvm_sample.utils;



/**
 * Created by nongdenchet on 10/22/15.
 */
public class ApplicationUtils {
    public static TestApplication application() {
        Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation();
        return (TestApplication) instrumentation.getTargetContext().getApplicationContext();