Can someone teach me how to test the sample code below?
How to I write espresso test for this? Since no view action is required?
public class SampleActivity extends AppCompatActivity {
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
Intent intent = new Intent(this, NextActivity.class);
startActivity(intent);
}
}
I would want to test whether the activity was actually started. Please help me. Thanks in advance.