cmsdk: Add simple profile manager tests.

Change-Id: I73af75d956eeef0a621c713806245b51bacdbc18
This commit is contained in:
Adnan Begovic 2015-07-15 11:50:01 -07:00
parent 662628ae2b
commit 1f5ae92f44
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
package org.cyanogenmod.tests.profiles.unit;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
import cyanogenmod.app.ProfileManager;
import cyanogenmod.app.IProfileManager;
/**
* Created by adnan on 7/15/15.
*/
public class ProfileManagerTest extends AndroidTestCase {
private ProfileManager mProfileManager;
@Override
protected void setUp() throws Exception {
super.setUp();
mProfileManager = ProfileManager.getInstance(mContext);
}
@SmallTest
public void testManagerExists() {
assertNotNull(mProfileManager);
}
@SmallTest
public void testManagerServiceIsAvailable() {
IProfileManager iProfileManager = mProfileManager.getService();
assertNotNull(iProfileManager);
}
}