Hi All,
I have a scenario where I am launching an Activity from a simple Class method like
Class test{
public void LaunchActivity(Context context , Activity myActivity){
Intent myIntent = new Intent(context, myActivity);
myIntent .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(myIntent);
}
}
I want to write a test method for LaunchActivity using Robolectric. Should I need to write a Custom Shadow class or any other suggestion