Hi I am tryint to write a junit using mockito for the below algorithm. can you please help me.
public void setOrientation(Activity activity) {
Get the DisplayMetrics for the phone;
calculate the screen size;
get configurations;
if (diagonalInches>=6.5 && tablet connected to hard keyboard){
set screen orientation
}
}
Aucun commentaire:
Enregistrer un commentaire