summaryrefslogtreecommitdiff
path: root/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeVehicleDataResponseSpec.m
diff options
context:
space:
mode:
authorleonid l lokhmatov <YLokhmatov@luxoft.com>2020-06-22 15:40:53 +0300
committerleonid l lokhmatov <YLokhmatov@luxoft.com>2020-06-22 15:40:53 +0300
commita96ba6220dd6d51b5febe724c7af9dc825f37e26 (patch)
treed231fd8702cc9a7074f76e48a2a066059847389a /SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeVehicleDataResponseSpec.m
parent6d3d8eae14628cd9f11c5b8770f445aa15455100 (diff)
downloadsdl_ios-a96ba6220dd6d51b5febe724c7af9dc825f37e26.tar.gz
sdl-0253 "New vehicle data StabilityControlsStatus": implement tests
Diffstat (limited to 'SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeVehicleDataResponseSpec.m')
-rw-r--r--SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeVehicleDataResponseSpec.m16
1 files changed, 11 insertions, 5 deletions
diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeVehicleDataResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeVehicleDataResponseSpec.m
index 3f6302e4b..f1b8d6b2c 100644
--- a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeVehicleDataResponseSpec.m
+++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeVehicleDataResponseSpec.m
@@ -52,6 +52,7 @@ describe(@"Getter/Setter Tests", ^ {
testResponse.electronicParkBrakeStatus = vehicleDataResult;
testResponse.turnSignal = vehicleDataResult;
testResponse.cloudAppVehicleID = vehicleDataResult;
+ testResponse.stabilityControlsStatus = vehicleDataResult;
expect(testResponse.gps).to(equal(vehicleDataResult));
expect(testResponse.speed).to(equal(vehicleDataResult));
@@ -82,6 +83,7 @@ describe(@"Getter/Setter Tests", ^ {
expect(testResponse.electronicParkBrakeStatus).to(equal(vehicleDataResult));
expect(testResponse.turnSignal).to(equal(vehicleDataResult));
expect(testResponse.cloudAppVehicleID).to(equal(vehicleDataResult));
+ expect(testResponse.stabilityControlsStatus).to(equal(vehicleDataResult));
});
it(@"Should get correctly when initialized", ^ {
@@ -115,7 +117,8 @@ describe(@"Getter/Setter Tests", ^ {
SDLRPCParameterNameMyKey:vehicleDataResult,
SDLRPCParameterNameElectronicParkBrakeStatus:vehicleDataResult,
SDLRPCParameterNameTurnSignal:vehicleDataResult,
- SDLRPCParameterNameCloudAppVehicleID:vehicleDataResult
+ SDLRPCParameterNameCloudAppVehicleID:vehicleDataResult,
+ @"stabilityControlsStatus":vehicleDataResult
},
SDLRPCParameterNameOperationName:SDLRPCFunctionNameUnsubscribeVehicleData}} mutableCopy];
#pragma clang diagnostic push
@@ -152,10 +155,11 @@ describe(@"Getter/Setter Tests", ^ {
expect(testResponse.electronicParkBrakeStatus).to(equal(vehicleDataResult));
expect(testResponse.turnSignal).to(equal(vehicleDataResult));
expect(testResponse.cloudAppVehicleID).to(equal(vehicleDataResult));
+ expect(testResponse.stabilityControlsStatus).to(equal(vehicleDataResult));
});
it(@"Should return nil if not set", ^ {
- SDLUnsubscribeVehicleDataResponse* testResponse = [[SDLUnsubscribeVehicleDataResponse alloc] init];
+ SDLUnsubscribeVehicleDataResponse* testResponse = [SDLUnsubscribeVehicleDataResponse new];
expect(testResponse.gps).to(beNil());
expect(testResponse.speed).to(beNil());
@@ -186,14 +190,16 @@ describe(@"Getter/Setter Tests", ^ {
expect(testResponse.electronicParkBrakeStatus).to(beNil());
expect(testResponse.turnSignal).to(beNil());
expect(testResponse.cloudAppVehicleID).to(beNil());
+ expect(testResponse.stabilityControlsStatus).to(beNil());
});
it(@"Should set and get Generic Network Signal Data", ^{
- SDLUnsubscribeVehicleDataResponse *testRequest = [[SDLUnsubscribeVehicleDataResponse alloc] init];
+ SDLUnsubscribeVehicleDataResponse *testResponse = [SDLUnsubscribeVehicleDataResponse new];
- [testRequest setOEMCustomVehicleData:@"customOEMVehicleData" withVehicleDataState:customOEMvehicleDataResult];
+ [testResponse setOEMCustomVehicleData:@"customOEMVehicleData" withVehicleDataState:customOEMvehicleDataResult];
- expect([testRequest getOEMCustomVehicleData:@"customOEMVehicleData"]).to(equal(customOEMvehicleDataResult));
+ expect([testResponse getOEMCustomVehicleData:@"customOEMVehicleData"]).to(equal(customOEMvehicleDataResult));
+ expect(testResponse.stabilityControlsStatus).to(beNil());
});
});