// Path: app/src/main/java/com/miguelbcr/ui/rx_paparazzo2/sample/activities/StartActivity.java
// public class StartActivity extends AppCompatActivity {
// 
//     @Override protected void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.start_activity);
// 
//         findViewById(R.id.bt_activity).setOnClickListener(view -> {
//             startActivity(new Intent(StartActivity.this, SampleActivity.class));
//         });
// 
//         findViewById(R.id.bt_fragment).setOnClickListener(view -> {
//             startActivity(new Intent(StartActivity.this, HostActivitySampleFragment.class));
//         });
//     }
// }


import androidx.test.InstrumentationRegistry;
import androidx.test.rule.ActivityTestRule;
import androidx.test.runner.AndroidJUnit4;
import androidx.test.uiautomator.UiDevice;
import com.miguelbcr.ui.rx_paparazzo2.sample.activities.StartActivity;
import org.junit.Before;
import org.junit.ClassRule;
import org.junit.FixMethodOrder;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.MethodSorters;
import io.victoralbertos.device_animation_test_rule.DeviceAnimationTestRule;
import static androidx.test.espresso.Espresso.onView;
import static androidx.test.espresso.action.ViewActions.click;
import static androidx.test.espresso.matcher.ViewMatchers.withId;
package com.miguelbcr.ui.rx_paparazzo2.sample;






/**
 * TESTED ON:
 * - Google Nexus 5 5.0.0 API 21 1080x1920 480dpi
 * - Google Nexus 7 5.1.0 API 22 800x1280 213dpi
 * - Samsung Galaxy S6 - 6.0.0 API 23 1440x2560 640dpi
 */
@RunWith(AndroidJUnit4.class)
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class ApplicationTest extends UiActions {
    @ClassRule
    static public DeviceAnimationTestRule deviceAnimationTestRule = new DeviceAnimationTestRule();

    @Rule
// Path: app/src/main/java/com/miguelbcr/ui/rx_paparazzo2/sample/activities/StartActivity.java
// public class StartActivity extends AppCompatActivity {
// 
//     @Override protected void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.start_activity);
// 
//         findViewById(R.id.bt_activity).setOnClickListener(view -> {
//             startActivity(new Intent(StartActivity.this, SampleActivity.class));
//         });
// 
//         findViewById(R.id.bt_fragment).setOnClickListener(view -> {
//             startActivity(new Intent(StartActivity.this, HostActivitySampleFragment.class));
//         });
//     }
// }


// Path: app/src/androidTest/java/com/miguelbcr/ui/rx_paparazzo2/sample/ApplicationTest.java
import androidx.test.InstrumentationRegistry;
import androidx.test.rule.ActivityTestRule;
import androidx.test.runner.AndroidJUnit4;
import androidx.test.uiautomator.UiDevice;
import com.miguelbcr.ui.rx_paparazzo2.sample.activities.StartActivity;
import org.junit.Before;
import org.junit.ClassRule;
import org.junit.FixMethodOrder;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.MethodSorters;
import io.victoralbertos.device_animation_test_rule.DeviceAnimationTestRule;
import static androidx.test.espresso.Espresso.onView;
import static androidx.test.espresso.action.ViewActions.click;
import static androidx.test.espresso.matcher.ViewMatchers.withId;

package com.miguelbcr.ui.rx_paparazzo2.sample;






/**
 * TESTED ON:
 * - Google Nexus 5 5.0.0 API 21 1080x1920 480dpi
 * - Google Nexus 7 5.1.0 API 22 800x1280 213dpi
 * - Samsung Galaxy S6 - 6.0.0 API 23 1440x2560 640dpi
 */
@RunWith(AndroidJUnit4.class)
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class ApplicationTest extends UiActions {
    @ClassRule
    static public DeviceAnimationTestRule deviceAnimationTestRule = new DeviceAnimationTestRule();

    @Rule
    public ActivityTestRule<StartActivity> activityRule = new ActivityTestRule<>(StartActivity.class);