From 1f5ae92f443519d2ccadb96fcafa80733ea6782e Mon Sep 17 00:00:00 2001 From: Adnan Begovic Date: Wed, 15 Jul 2015 11:50:01 -0700 Subject: [PATCH] cmsdk: Add simple profile manager tests. Change-Id: I73af75d956eeef0a621c713806245b51bacdbc18 --- .../profiles/unit/ProfileManagerTest.java | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tests/src/org/cyanogenmod/tests/profiles/unit/ProfileManagerTest.java diff --git a/tests/src/org/cyanogenmod/tests/profiles/unit/ProfileManagerTest.java b/tests/src/org/cyanogenmod/tests/profiles/unit/ProfileManagerTest.java new file mode 100644 index 00000000..011daba7 --- /dev/null +++ b/tests/src/org/cyanogenmod/tests/profiles/unit/ProfileManagerTest.java @@ -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); + } +}