@Override public void openLoginActivity() { startActivity(LoginActivity.getStartIntent(this)); finish(); }
@Override public void openMainActivity() { Intent intent = MainActivity.getStartIntent(LoginActivity.this); startActivity(intent); finish(); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_login); getActivityComponent().inject(this); setUnBinder(ButterKnife.bind(this)); mPresenter.onAttach(LoginActivity.this); }
@Override public void openActivityOnTokenExpire() { startActivity(LoginActivity.getStartIntent(this)); finish(); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_login); getActivityComponent().inject(this); setUnBinder(ButterKnife.bind(this)); mPresenter.onAttach(LoginActivity.this); }
@Override public void openMainActivity() { Intent intent = MainActivity.getStartIntent(LoginActivity.this); startActivity(intent); finish(); }
/** * Making the screen wait so that the branding can be shown */ @Override public void openLoginActivity() { Intent intent = LoginActivity.getStartIntent(SplashActivity.this); startActivity(intent); finish(); }
@Test public void checkViewsDisplay() { main.launchActivity(LoginActivity.getStartIntent(component.getContext())); onView(withId(R.id.et_email)) .check(matches(isDisplayed())); onView(withId(R.id.et_password)) .check(matches(isDisplayed())); onView(withId(R.id.btn_server_login)) .check(matches(isDisplayed())); onView(withText(R.string.login)) .check(matches(isDisplayed())); onView(withId(R.id.ib_google_login)) .check(matches(isDisplayed())); onView(withId(R.id.ib_fb_login)) .check(matches(isDisplayed())); } }
@Override public void openActivityOnTokenExpire() { startActivity(LoginActivity.getStartIntent(this)); finish(); }
/** * Making the screen wait so that the branding can be shown */ @Override public void openLoginActivity() { Intent intent = LoginActivity.getStartIntent(SplashActivity.this); startActivity(intent); finish(); }
@Override public void openLoginActivity() { startActivity(LoginActivity.getStartIntent(this)); finish(); }
@Test public void checkViewsDisplay() { main.launchActivity(LoginActivity.getStartIntent(component.getContext())); onView(withId(R.id.et_email)) .check(matches(isDisplayed())); onView(withId(R.id.et_password)) .check(matches(isDisplayed())); onView(withId(R.id.btn_server_login)) .check(matches(isDisplayed())); onView(withText(R.string.login)) .check(matches(isDisplayed())); onView(withId(R.id.ib_google_login)) .check(matches(isDisplayed())); onView(withId(R.id.ib_fb_login)) .check(matches(isDisplayed())); } }