diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/org/lineageos/tests/profiles/unit/ConnectionSettingsTest.java | 13 | ||||
-rw-r--r-- | tests/src/org/lineageos/tests/profiles/unit/ProfileTest.java | 5 |
2 files changed, 10 insertions, 8 deletions
diff --git a/tests/src/org/lineageos/tests/profiles/unit/ConnectionSettingsTest.java b/tests/src/org/lineageos/tests/profiles/unit/ConnectionSettingsTest.java index 4564727e..78e4ac3c 100644 --- a/tests/src/org/lineageos/tests/profiles/unit/ConnectionSettingsTest.java +++ b/tests/src/org/lineageos/tests/profiles/unit/ConnectionSettingsTest.java @@ -1,5 +1,6 @@ /** - * Copyright (c) 2016, The CyanogenMod Project + * Copyright (C) 2016 The CyanogenMod Project + * 2020 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,8 +25,8 @@ public class ConnectionSettingsTest extends AndroidTestCase { @SmallTest public void testConstructManually() { ConnectionSettings connectionSettings = new ConnectionSettings( - ConnectionSettings.PROFILE_CONNECTION_GPS); - assertEquals(ConnectionSettings.PROFILE_CONNECTION_GPS, + ConnectionSettings.PROFILE_CONNECTION_LOCATION); + assertEquals(ConnectionSettings.PROFILE_CONNECTION_LOCATION, connectionSettings.getConnectionId()); assertNotNull(connectionSettings); } @@ -33,12 +34,12 @@ public class ConnectionSettingsTest extends AndroidTestCase { @SmallTest public void testConstructWholly() { ConnectionSettings connectionSettings = - new ConnectionSettings(ConnectionSettings.PROFILE_CONNECTION_GPS, + new ConnectionSettings(ConnectionSettings.PROFILE_CONNECTION_LOCATION, ConnectionSettings.BooleanState.STATE_DISALED, true); assertEquals(true, connectionSettings.isOverride()); assertEquals(ConnectionSettings.BooleanState.STATE_DISALED, connectionSettings.getValue()); - assertEquals(ConnectionSettings.PROFILE_CONNECTION_GPS, + assertEquals(ConnectionSettings.PROFILE_CONNECTION_LOCATION, connectionSettings.getConnectionId()); assertNotNull(connectionSettings); } @@ -46,7 +47,7 @@ public class ConnectionSettingsTest extends AndroidTestCase { @SmallTest public void testVerifyOverride() { ConnectionSettings connectionSettings = new ConnectionSettings( - ConnectionSettings.PROFILE_CONNECTION_GPS); + ConnectionSettings.PROFILE_CONNECTION_LOCATION); connectionSettings.setOverride(true); assertEquals(true, connectionSettings.isOverride()); } diff --git a/tests/src/org/lineageos/tests/profiles/unit/ProfileTest.java b/tests/src/org/lineageos/tests/profiles/unit/ProfileTest.java index ac4b5bbe..3beba541 100644 --- a/tests/src/org/lineageos/tests/profiles/unit/ProfileTest.java +++ b/tests/src/org/lineageos/tests/profiles/unit/ProfileTest.java @@ -1,5 +1,6 @@ /** - * Copyright (c) 2015, The CyanogenMod Project + * Copyright (C) 2015 The CyanogenMod Project + * 2020 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -51,7 +52,7 @@ public class ProfileTest extends AndroidTestCase { public void testProfileConnectionSettingsUnravelFromParcel() { Profile profile = new Profile("Connection Profile"); ConnectionSettings expectedConnectionSettings = - new ConnectionSettings(ConnectionSettings.PROFILE_CONNECTION_GPS, + new ConnectionSettings(ConnectionSettings.PROFILE_CONNECTION_LOCATION, ConnectionSettings.BooleanState.STATE_DISALED, true); profile.setConnectionSettings(expectedConnectionSettings); |