diff options
Diffstat (limited to 'sdl_android/src/androidTest/java/com/smartdevicelink/api/lockscreen/LockScreenConfigTests.java')
-rw-r--r-- | sdl_android/src/androidTest/java/com/smartdevicelink/api/lockscreen/LockScreenConfigTests.java | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/sdl_android/src/androidTest/java/com/smartdevicelink/api/lockscreen/LockScreenConfigTests.java b/sdl_android/src/androidTest/java/com/smartdevicelink/api/lockscreen/LockScreenConfigTests.java new file mode 100644 index 000000000..a5d2a0eec --- /dev/null +++ b/sdl_android/src/androidTest/java/com/smartdevicelink/api/lockscreen/LockScreenConfigTests.java @@ -0,0 +1,46 @@ +package com.smartdevicelink.api.lockscreen; + +import android.test.AndroidTestCase; + +import com.smartdevicelink.test.Test; + + +/** + * This is a unit test class for the SmartDeviceLink library manager class : + * {@link com.smartdevicelink.api.lockscreen.LockScreenConfig} + * + * We currently do not need to test null values, as each currently is a primitive + */ +public class LockScreenConfigTests extends AndroidTestCase { + + private LockScreenConfig lockScreenConfig; + + @Override + public void setUp() throws Exception { + super.setUp(); + + // set info for all the setters + lockScreenConfig = new LockScreenConfig(); + lockScreenConfig.setCustomView(Test.GENERAL_INT); + lockScreenConfig.setAppIcon(Test.GENERAL_INT); + lockScreenConfig.setBackgroundColor(Test.GENERAL_INT); + lockScreenConfig.showDeviceLogo(true); + lockScreenConfig.setEnabled(true); + } + + @Override + public void tearDown() throws Exception { + super.tearDown(); + } + + public void testLockScreenConfig() { + + // get the info and make sure its correct + assertEquals(Test.GENERAL_INT, lockScreenConfig.getCustomView()); + assertEquals(Test.GENERAL_INT, lockScreenConfig.getAppIcon()); + assertEquals(Test.GENERAL_INT, lockScreenConfig.getBackgroundColor()); + assertEquals(true, lockScreenConfig.isEnabled()); + assertEquals(true, lockScreenConfig.isDeviceLogoEnabled()); + } + +}
\ No newline at end of file |