-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementing new ElectronicParkBrakeStatus #797
Conversation
- adding new enum - adding additional VehicleDataType - adding field in Subscribe and Unsubscribe Vehicle Data Request & Response - adding field in GetVehicleData Request & Response - adding field in OnVehicleData notification - adding corresponding sections to unit tests to cover new code
Codecov Report
@@ Coverage Diff @@
## develop #797 +/- ##
============================================
+ Coverage 42.74% 42.85% +0.1%
- Complexity 2900 2916 +16
============================================
Files 369 370 +1
Lines 17187 17218 +31
Branches 1732 1732
============================================
+ Hits 7347 7378 +31
Misses 9523 9523
Partials 317 317
Continue to review full report at Codecov.
|
} | ||
|
||
/** | ||
* Verifies the possible enum values of WiperStatus. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not WiperStatus
@@ -162,6 +165,7 @@ public void testRpcValues () { | |||
assertNull(Test.NULL, msg.getEmergencyEvent()); | |||
assertNull(Test.NULL, msg.getClusterModeStatus()); | |||
assertNull(Test.NULL, msg.getMyKey()); | |||
assertNull(Test.NULL, msg.getElectronicParkBrakeStatus()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure how picky we want to be with tabs/spaces but there are a lot of lines in this PR that dont line up
# Conflicts: # sdl_android/src/androidTest/assets/json/GetVehicleData.json # sdl_android/src/androidTest/assets/json/SubscribeVehicleData.json # sdl_android/src/androidTest/assets/json/UnsubscribeVehicleData.json # sdl_android/src/androidTest/java/com/smartdevicelink/test/VehicleDataHelper.java # sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/enums/VehicleDataTypeTests.java # sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/notifications/OnVehicleDataTests.java # sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/requests/GetVehicleDataTests.java # sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/requests/SubscribeVehicleDataTests.java # sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/requests/UnsubscribeVehicleDataTests.java # sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/responses/GetVehicleDataResponseTests.java # sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/responses/SubscribeVehicleDataResponseTest.java # sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/responses/UnsubscribeVehicleDataResponseTest.java # sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/GetVehicleData.java # sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/GetVehicleDataResponse.java # sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/OnVehicleData.java # sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/SubscribeVehicleData.java # sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/SubscribeVehicleDataResponse.java # sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/UnsubscribeVehicleData.java # sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/UnsubscribeVehicleDataResponse.java # sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/enums/VehicleDataType.java
@@ -474,4 +475,12 @@ public Boolean getFuelRange() { | |||
* @return a Boolean value. | |||
*/ | |||
public Boolean getTurnSignal() { return getBoolean(KEY_TURN_SIGNAL); } | |||
|
|||
public void setElectronicParkBrakeStatus(Boolean electronicParkBrakeStatus){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add javadoc
setParameters(KEY_ELECTRONIC_PARK_BRAKE_STATUS, electronicParkBrakeStatus); | ||
} | ||
|
||
public Boolean getElectronicParkBrakeStatus(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add javadoc
@@ -295,4 +297,11 @@ public void setTurnSignal(TurnSignal turnSignal) { | |||
public TurnSignal getTurnSignal() { | |||
return (TurnSignal) getObject(TurnSignal.class, KEY_TURN_SIGNAL); | |||
} | |||
|
|||
public void setElectronicParkBrakeStatus(ElectronicParkBrakeStatus electronicParkBrakeStatus){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add javadoc
public void setElectronicParkBrakeStatus(ElectronicParkBrakeStatus electronicParkBrakeStatus){ | ||
setParameters(KEY_ELECTRONIC_PARK_BRAKE_STATUS, electronicParkBrakeStatus); | ||
} | ||
public ElectronicParkBrakeStatus getElectronicParkBrakeStatus(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add javadoc
@@ -510,4 +512,11 @@ public void setTurnSignal(TurnSignal turnSignal) { | |||
public TurnSignal getTurnSignal() { | |||
return (TurnSignal) getObject(TurnSignal.class, KEY_TURN_SIGNAL); | |||
} | |||
|
|||
public void setElectronicParkBrakeStatus(ElectronicParkBrakeStatus electronicParkBrakeStatus){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add javadoc
public void setElectronicParkBrakeStatus(ElectronicParkBrakeStatus electronicParkBrakeStatus){ | ||
setParameters(KEY_ELECTRONIC_PARK_BRAKE_STATUS, electronicParkBrakeStatus); | ||
} | ||
public ElectronicParkBrakeStatus getElectronicParkBrakeStatus(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add javadoc
@@ -790,4 +791,11 @@ public Boolean getFuelRange() { | |||
* @return a Boolean value. | |||
*/ | |||
public Boolean getTurnSignal() { return getBoolean(KEY_TURN_SIGNAL); } | |||
|
|||
public void setElectronicParkBrakeStatus(boolean electronicParkBrakeStatus){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add javadoc
public void setElectronicParkBrakeStatus(boolean electronicParkBrakeStatus){ | ||
setParameters(KEY_ELECTRONIC_PARK_BRAKE_STATUS, electronicParkBrakeStatus); | ||
} | ||
public Boolean getElectronicParkBrakeStatus(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add javadoc
@@ -449,4 +450,11 @@ public void setTurnSignal(VehicleDataResult turnSignal) { | |||
public VehicleDataResult getTurnSignal() { | |||
return (VehicleDataResult) getObject(VehicleDataResult.class, KEY_TURN_SIGNAL); | |||
} | |||
|
|||
public void setElectronicParkBrakeStatus(VehicleDataResult electronicParkBrakeStatus){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add javadoc
public void setElectronicParkBrakeStatus(VehicleDataResult electronicParkBrakeStatus){ | ||
setParameters(KEY_ELECTRONIC_PARK_BRAKE_STATUS, electronicParkBrakeStatus); | ||
} | ||
public VehicleDataResult getElectronicParkBrakeStatus(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add javadoc
@@ -784,4 +785,11 @@ public Boolean getFuelRange() { | |||
* @return a Boolean value. | |||
*/ | |||
public Boolean getTurnSignal() { return getBoolean(KEY_TURN_SIGNAL); } | |||
|
|||
public void setElectronicParkBrakeStatus(Boolean electronicParkBrakeStatus) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add javadoc
public void setElectronicParkBrakeStatus(Boolean electronicParkBrakeStatus) { | ||
setParameters(KEY_ELECTRONIC_PARK_BRAKE_STATUS, electronicParkBrakeStatus); | ||
} | ||
public Boolean getElectronicParkBrakeStatus() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add javadoc
@@ -454,4 +455,11 @@ public void setTurnSignal(VehicleDataResult turnSignal) { | |||
public VehicleDataResult getTurnSignal() { | |||
return (VehicleDataResult) getObject(VehicleDataResult.class, KEY_TURN_SIGNAL); | |||
} | |||
|
|||
public void setElectronicParkBrakeStatus(VehicleDataResult electronicParkBrakeStatus){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add javadoc
public void setElectronicParkBrakeStatus(VehicleDataResult electronicParkBrakeStatus){ | ||
setParameters(KEY_ELECTRONIC_PARK_BRAKE_STATUS, electronicParkBrakeStatus); | ||
} | ||
public VehicleDataResult getElectronicParkBrakeStatus(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add javadoc
/** | ||
* When system has a fault or is under maintenance. | ||
*/ | ||
FAULT; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a comma, an extra clear line, and move the semicolon underneath
Fixes #632
This PR is [ready] for review.
Risk
This PR makes [minor] API changes.
Testing Plan
Unit tests were updated to cover new code changes.
Summary
Changelog
Enhancements
electronicParkBrakeStatus
CLA