Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmsdk: Add simple profile manager tests.
Change-Id: I73af75d956eeef0a621c713806245b51bacdbc18
- Loading branch information
Adnan Begovic
committed
Jul 15, 2015
1 parent
662628a
commit 1f5ae92
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
tests/src/org/cyanogenmod/tests/profiles/unit/ProfileManagerTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} | ||
} |