Add SmallTest annotation to UserCredentialsTest
Also cleaned up the comments and the imports slightly. Change-Id: Ieea8af1914ff2f78764d33a9ce6b56621c809fcf
This commit is contained in:
@@ -18,8 +18,7 @@ package com.android.settings;
|
|||||||
|
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.test.InstrumentationTestCase;
|
import android.test.InstrumentationTestCase;
|
||||||
import android.test.InstrumentationTestRunner;
|
import android.test.suitebuilder.annotation.SmallTest;
|
||||||
import android.test.suitebuilder.annotation.LargeTest;
|
|
||||||
|
|
||||||
import static com.android.settings.UserCredentialsSettings.Credential;
|
import static com.android.settings.UserCredentialsSettings.Credential;
|
||||||
|
|
||||||
@@ -27,13 +26,14 @@ import static com.android.settings.UserCredentialsSettings.Credential;
|
|||||||
* User credentials settings fragment tests
|
* User credentials settings fragment tests
|
||||||
*
|
*
|
||||||
* To run the test, use command:
|
* To run the test, use command:
|
||||||
* adb shell am instrument -e class com.android.settings.security.UserCredentialsTests
|
* adb shell am instrument -e class com.android.settings.UserCredentialsTest
|
||||||
* -w com.android.settings.tests/android.test.InstrumentationTestRunner
|
* -w com.android.settings.tests.unit/android.support.test.runner.AndroidJUnitRunner
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class UserCredentialsTests extends InstrumentationTestCase {
|
public class UserCredentialsTest extends InstrumentationTestCase {
|
||||||
private static final String TAG = "UserCredentialsTests";
|
private static final String TAG = "UserCredentialsTests";
|
||||||
|
|
||||||
|
@SmallTest
|
||||||
public void testCredentialIsParcelable() {
|
public void testCredentialIsParcelable() {
|
||||||
final String alias = "credential-test-alias";
|
final String alias = "credential-test-alias";
|
||||||
Credential c = new Credential(alias);
|
Credential c = new Credential(alias);
|
Reference in New Issue
Block a user