Add SmallTest annotation to UserCredentialsTest

Also cleaned up the comments and the imports slightly.

Change-Id: Ieea8af1914ff2f78764d33a9ce6b56621c809fcf
This commit is contained in:
Benjamin Franz
2016-01-25 18:27:18 +00:00
parent 3833c6f8ec
commit d72fffea1b

View File

@@ -18,8 +18,7 @@ package com.android.settings;
import android.os.Parcel;
import android.test.InstrumentationTestCase;
import android.test.InstrumentationTestRunner;
import android.test.suitebuilder.annotation.LargeTest;
import android.test.suitebuilder.annotation.SmallTest;
import static com.android.settings.UserCredentialsSettings.Credential;
@@ -27,13 +26,14 @@ import static com.android.settings.UserCredentialsSettings.Credential;
* User credentials settings fragment tests
*
* To run the test, use command:
* adb shell am instrument -e class com.android.settings.security.UserCredentialsTests
* -w com.android.settings.tests/android.test.InstrumentationTestRunner
* adb shell am instrument -e class com.android.settings.UserCredentialsTest
* -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";
@SmallTest
public void testCredentialIsParcelable() {
final String alias = "credential-test-alias";
Credential c = new Credential(alias);