diff options
author | Robert Henigan <robert.henigan@livio.io> | 2020-09-21 10:55:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-21 10:55:03 -0400 |
commit | 925d9c5b6e0c41fd5af166aa45bdd72125585ad8 (patch) | |
tree | 67cafde80b2663faa85e51530ffe7bd008758ad8 /android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/datatypes/NavigationCapabilityTests.java | |
parent | c003e108393c51dff1ec4971987ef38c793673f1 (diff) | |
parent | 9bf45a71a2649ea9f874c0b5138d4495cdd5abc4 (diff) | |
download | sdl_android-925d9c5b6e0c41fd5af166aa45bdd72125585ad8.tar.gz |
Merge pull request #1505 from smartdevicelink/feature/code_formatting
Reformat project code
Diffstat (limited to 'android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/datatypes/NavigationCapabilityTests.java')
-rw-r--r-- | android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/datatypes/NavigationCapabilityTests.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/datatypes/NavigationCapabilityTests.java b/android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/datatypes/NavigationCapabilityTests.java index af2410155..200d33fbe 100644 --- a/android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/datatypes/NavigationCapabilityTests.java +++ b/android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/datatypes/NavigationCapabilityTests.java @@ -12,15 +12,15 @@ import org.json.JSONObject; import java.util.Iterator; /** - * This is a unit test class for the SmartDeviceLink library project class : + * This is a unit test class for the SmartDeviceLink library project class : * {@link com.smartdevicelink.proxy.rpc.NavigationCapability} */ -public class NavigationCapabilityTests extends TestCase{ +public class NavigationCapabilityTests extends TestCase { private NavigationCapability msg; @Override - public void setUp(){ + public void setUp() { msg = new NavigationCapability(); msg.setSendLocationEnabled(TestValues.GENERAL_BOOLEAN); @@ -28,10 +28,10 @@ public class NavigationCapabilityTests extends TestCase{ } /** - * Tests the expected values of the RPC message. - */ - public void testRpcValues () { - // Test Values + * Tests the expected values of the RPC message. + */ + public void testRpcValues() { + // Test Values boolean sendLocationEnabled = msg.getSendLocationEnabled(); boolean getWayPointsEnabled = msg.getWayPointsEnabled(); @@ -47,10 +47,10 @@ public class NavigationCapabilityTests extends TestCase{ assertNull(TestValues.NULL, msg.getWayPointsEnabled()); } - public void testJson(){ + public void testJson() { JSONObject reference = new JSONObject(); - try{ + try { reference.put(NavigationCapability.KEY_GETWAYPOINTS_ENABLED, TestValues.GENERAL_BOOLEAN); reference.put(NavigationCapability.KEY_LOCATION_ENABLED, TestValues.GENERAL_BOOLEAN); @@ -58,12 +58,12 @@ public class NavigationCapabilityTests extends TestCase{ assertEquals(TestValues.MATCH, reference.length(), underTest.length()); Iterator<?> iterator = reference.keys(); - while(iterator.hasNext()){ + while (iterator.hasNext()) { String key = (String) iterator.next(); assertEquals(TestValues.MATCH, JsonUtils.readObjectFromJsonObject(reference, key), JsonUtils.readObjectFromJsonObject(underTest, key)); } - }catch(JSONException e){ - fail(TestValues.JSON_FAIL); + } catch (JSONException e) { + fail(TestValues.JSON_FAIL); } } }
\ No newline at end of file |