Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @MediumTest
- public void testLoginSenzaCredenziali() {
- Button btn_login = (Button) mActiviy.findViewById(R.id.btn_login);
- EditText txt_username = (EditText) mActiviy.findViewById(R.id.txt_login_username);
- EditText txt_password = (EditText) mActiviy.findViewById(R.id.txt_login_password);
- assertNotNull("Button btn_login non può essere nullo", btn_login);
- assertNotNull("EditText txt_username non può essere nullo", txt_username);
- assertNotNull("EditText txt_password non può essere nullo", txt_password);
- assertEquals("EditText txt_username deve essere vuota", "", txt_username.getText());
- assertEquals("EditText txt_password deve essere vuota", "", txt_password.getText());
- }
- public class LoginTest extends ActivityUnitTestCase<LoginActivity>
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- }
- adb shell pm list packages
Add Comment
Please, Sign In to add comment