diff options
Diffstat (limited to 'tests/src/org/lineageos/tests/profiles/unit/ConnectionSettingsTest.java')
-rw-r--r-- | tests/src/org/lineageos/tests/profiles/unit/ConnectionSettingsTest.java | 13 |
1 files changed, 7 insertions, 6 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()); } |