summaryrefslogtreecommitdiffstats
path: root/tests/src/com
diff options
context:
space:
mode:
authorMartin Hibdon <mhibdon@google.com>2014-02-19 16:15:43 -0800
committerMartin Hibdon <mhibdon@google.com>2014-02-19 16:17:43 -0800
commit10c7412555ce7f1499cf2834f35e95adf4769de3 (patch)
tree12e34b6da53170f28496a40df84067c7b0b4cade /tests/src/com
parent56b7ef3c0d7a01560458c99cc8119585de6f5a25 (diff)
downloadandroid_packages_apps_Email-10c7412555ce7f1499cf2834f35e95adf4769de3.tar.gz
android_packages_apps_Email-10c7412555ce7f1499cf2834f35e95adf4769de3.tar.bz2
android_packages_apps_Email-10c7412555ce7f1499cf2834f35e95adf4769de3.zip
Fix some broken tests
b/13085182 You can't look up emailServiceInfo for smtp, we don't store that in services.xml. The thing is, if we're using outgoing settings, we're always using smtp, which allows oauth. Change-Id: I5c6032e8d5020ba83fa1c803666b83f134f87f75
Diffstat (limited to 'tests/src/com')
-rw-r--r--tests/src/com/android/email/activity/setup/AccountSetupOutgoingTests.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/src/com/android/email/activity/setup/AccountSetupOutgoingTests.java b/tests/src/com/android/email/activity/setup/AccountSetupOutgoingTests.java
index 5de3fb95f..5384ed576 100644
--- a/tests/src/com/android/email/activity/setup/AccountSetupOutgoingTests.java
+++ b/tests/src/com/android/email/activity/setup/AccountSetupOutgoingTests.java
@@ -26,6 +26,7 @@ import android.widget.EditText;
import com.android.email.R;
import com.android.email.activity.setup.AccountSetupOutgoing;
import com.android.email.activity.setup.AccountSetupOutgoingFragment;
+import com.android.email.activity.setup.AuthenticationView;
import com.android.email.activity.setup.SetupDataFragment;
import com.android.emailcommon.provider.Account;
import com.android.emailcommon.provider.HostAuth;
@@ -44,7 +45,7 @@ public class AccountSetupOutgoingTests extends
private AccountSetupOutgoing mActivity;
private AccountSetupOutgoingFragment mFragment;
private EditText mServerView;
- private EditText mPasswordView;
+ private AuthenticationView mAuthenticationView;
public AccountSetupOutgoingTests() {
super(AccountSetupOutgoing.class);
@@ -159,7 +160,7 @@ public class AccountSetupOutgoingTests extends
* @param expectNext true if expected that this password will enable the "next" button
*/
private void checkPassword(String password, boolean expectNext) throws URISyntaxException {
- mPasswordView.setText(password);
+ mAuthenticationView.setPassword(password);
if (expectNext) {
assertTrue(mActivity.mNextButtonEnabled);
} else {
@@ -178,7 +179,7 @@ public class AccountSetupOutgoingTests extends
mActivity = getActivity();
mFragment = mActivity.mFragment;
mServerView = (EditText) mActivity.findViewById(R.id.account_server);
- mPasswordView = (EditText) mActivity.findViewById(R.id.account_server);
+ mAuthenticationView = (AuthenticationView) mActivity.findViewById(R.id.account_server);
}
/**