1

android junit test case for if statement

view story
linux-howto

http://stackoverflow.com – Hii i am new to junit test for android so my question is i have 6 EditText fields and one Button by pressing the Button it will check weather the field length of EditText fields are zero,if they are zero then it will show a Toast and otherwise it will go to another Activity so here is the my code Button.OnClickListener okListener = new Button.OnClickListener() { public void onClick(View arg0) { if(text1.getText().toString().length()==0 || text2.getText().toString().length()==0||text3.getText().toString().length()==0|| text4.getText().toString().length()==0||text5.getText (HowTos)