summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorleonid lokhmatov, Luxoft <zaqqqqqqqq@gmail.com>2020-08-15 11:27:45 +0300
committerleonid lokhmatov, Luxoft <zaqqqqqqqq@gmail.com>2020-08-15 11:27:45 +0300
commit98fa45f435dc623e5190f2f82f719a7a426777ac (patch)
tree1c3691238558624cedac815ab1aefc4463b8f806
parentbabee97dd47ef5c712b31ea80f3a8738b08c69db (diff)
downloadsdl_ios-98fa45f435dc623e5190f2f82f719a7a426777ac.tar.gz
0266 "New vehicle data GearStatus": fix formatting in tests
-rw-r--r--SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnVehicleDataSpec.m6
-rw-r--r--SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLGetVehicleDataSpec.m7
-rw-r--r--SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSubscribeVehicleDataSpec.m2
-rw-r--r--SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnsubscribeVehicleDataSpec.m14
-rw-r--r--SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetVehicleDataResponseSpec.m4
-rw-r--r--SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeVehicleDataResponseSpec.m1
6 files changed, 14 insertions, 20 deletions
diff --git a/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnVehicleDataSpec.m b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnVehicleDataSpec.m
index 15e421eb1..e1b40f168 100644
--- a/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnVehicleDataSpec.m
+++ b/SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnVehicleDataSpec.m
@@ -297,10 +297,10 @@ describe(@"getter/setter tests", ^{
expect(testResponse.instantFuelConsumption).to(equal(@(instantFuelConsumption)));
expect(testResponse.myKey).to(equal(myKey));
expect(testResponse.odometer).to(equal(@(odometer)));
- #pragma clang diagnostic push
- #pragma clang diagnostic ignored "-Wdeprecated-declarations"
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
expect(testResponse.prndl).to(beNil());
- #pragma clang diagnostic pop
+#pragma clang diagnostic pop
expect(testResponse.gearStatus).to(equal(gearStatus));
expect(testResponse.rpm).to(equal(@(rpm)));
expect(testResponse.speed).to(equal(@(speed)));
diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLGetVehicleDataSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLGetVehicleDataSpec.m
index 54323cfff..7b0a3a13e 100644
--- a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLGetVehicleDataSpec.m
+++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLGetVehicleDataSpec.m
@@ -402,11 +402,10 @@ describe(@"test initializers", ^{
expect(testRequest.instantFuelConsumption).to(equal(@YES));
expect(testRequest.myKey).to(equal(@YES));
expect(testRequest.odometer).to(equal(@YES));
- #pragma clang diagnostic push
- #pragma clang diagnostic ignored "-Wdeprecated-declarations"
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
expect(testRequest.prndl).to(beNil());
- #pragma clang diagnostic pop
- expect(testRequest.gearStatus).to(equal(@YES));
+#pragma clang diagnostic pop
expect(testRequest.rpm).to(equal(@YES));
expect(testRequest.speed).to(equal(@YES));
expect(testRequest.steeringWheelAngle).to(equal(@YES));
diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSubscribeVehicleDataSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSubscribeVehicleDataSpec.m
index 3f122ccbe..6876df6e6 100644
--- a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSubscribeVehicleDataSpec.m
+++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSubscribeVehicleDataSpec.m
@@ -49,7 +49,6 @@ describe(@"getter/setter tests", ^{
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
testRequest.prndl = @YES;
#pragma clang diagnostic pop
- testRequest.gearStatus = @YES;
testRequest.rpm = @YES;
testRequest.speed = @YES;
testRequest.steeringWheelAngle = @YES;
@@ -178,7 +177,6 @@ describe(@"getter/setter tests", ^{
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
expect(testRequest.prndl).to(equal(@YES));
#pragma clang diagnostic pop
- expect(testRequest.gearStatus).to(equal(@YES));
expect(testRequest.rpm).to(equal(@YES));
expect(testRequest.speed).to(equal(@YES));
expect(testRequest.steeringWheelAngle).to(equal(@YES));
diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnsubscribeVehicleDataSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnsubscribeVehicleDataSpec.m
index 163df33db..a99a822be 100644
--- a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnsubscribeVehicleDataSpec.m
+++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLUnsubscribeVehicleDataSpec.m
@@ -373,10 +373,10 @@ context(@"initWithAccelerationPedalPosition:airbagStatus:beltStatus:bodyInformat
});
context (@"initWithGpsspeedrpminstantFuelConsumptionfuelRangeexternalTemperatureturnSignalgearStatustirePressureodometerbeltStatusbodyInformationdeviceStatusdriverBrakingwiperStatusheadLampStatusengineTorqueaccPedalPositionsteeringWheelAngleengineOilLifeelectronicParkBrakeStatuscloudAppVehicleIDeCallInfoairbagStatusemergencyEventclusterModeStatusmyKeyhandsOffSteering:", ^{
- #pragma clang diagnostic push
- #pragma clang diagnostic ignored "-Wdeprecated-declarations"
- SDLUnsubscribeVehicleData *testRequest = [[SDLUnsubscribeVehicleData alloc] initWithGps:@YES speed:@YES rpm:@YES instantFuelConsumption:@YES fuelRange:@YES externalTemperature:@YES turnSignal:@YES gearStatus:@YES tirePressure:@YES odometer:@YES beltStatus:@YES bodyInformation:@YES deviceStatus:@YES driverBraking:@YES wiperStatus:@YES headLampStatus:@YES engineTorque:@YES accPedalPosition:@YES steeringWheelAngle:@YES engineOilLife:@YES electronicParkBrakeStatus:@YES cloudAppVehicleID:@YES eCallInfo:@YES airbagStatus:@YES emergencyEvent:@YES clusterModeStatus:@YES myKey:@YES handsOffSteering:@YES];
- #pragma clang diagnostic pop
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+ SDLUnsubscribeVehicleData *testRequest = [[SDLUnsubscribeVehicleData alloc] initWithGps:@YES speed:@YES rpm:@YES instantFuelConsumption:@YES fuelRange:@YES externalTemperature:@YES turnSignal:@YES gearStatus:@YES tirePressure:@YES odometer:@YES beltStatus:@YES bodyInformation:@YES deviceStatus:@YES driverBraking:@YES wiperStatus:@YES headLampStatus:@YES engineTorque:@YES accPedalPosition:@YES steeringWheelAngle:@YES engineOilLife:@YES electronicParkBrakeStatus:@YES cloudAppVehicleID:@YES eCallInfo:@YES airbagStatus:@YES emergencyEvent:@YES clusterModeStatus:@YES myKey:@YES handsOffSteering:@YES];
+#pragma clang diagnostic pop
it(@"expect all properties to be set properly", ^{
expect(testRequest.accPedalPosition).to(equal(@YES));
@@ -393,11 +393,11 @@ context(@"initWithAccelerationPedalPosition:airbagStatus:beltStatus:bodyInformat
expect(testRequest.engineOilLife).to(equal(@YES));
expect(testRequest.engineTorque).to(equal(@YES));
expect(testRequest.externalTemperature).to(equal(@YES));
- #pragma clang diagnostic push
- #pragma clang diagnostic ignored "-Wdeprecated-declarations"
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
expect(testRequest.fuelLevel).to(beNil());
expect(testRequest.fuelLevel_State).to(beNil());
- #pragma clang diagnostic push
+#pragma clang diagnostic push
expect(testRequest.fuelRange).to(equal(@YES));
expect(testRequest.gearStatus).to(equal(@YES));
expect(testRequest.gps).to(equal(@YES));
diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetVehicleDataResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetVehicleDataResponseSpec.m
index 6eac84118..c5721f14b 100644
--- a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetVehicleDataResponseSpec.m
+++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetVehicleDataResponseSpec.m
@@ -83,7 +83,6 @@ describe(@"getter/setter tests", ^{
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
testResponse.prndl = prndl;
#pragma clang diagnostic pop
- testResponse.gearStatus = gearStatus;
testResponse.rpm = @(rpm);
testResponse.speed = @(speed);
testResponse.steeringWheelAngle = @(steeringWheelAngle);
@@ -124,7 +123,6 @@ describe(@"getter/setter tests", ^{
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
expect(testResponse.prndl).to(equal(prndl));
#pragma clang diagnostic pop
- expect(testResponse.gearStatus).to(equal(gearStatus));
expect(testResponse.rpm).to(equal(@(rpm)));
expect(testResponse.speed).to(equal(@(speed)));
expect(testResponse.steeringWheelAngle).to(equal(@(steeringWheelAngle)));
@@ -159,7 +157,6 @@ describe(@"getter/setter tests", ^{
#pragma clang diagnostic pop
SDLRPCParameterNameFuelRange:fuelRangeArray,
SDLRPCParameterNameGearStatus:gearStatus,
- SDLRPCParameterNameGearStatus:gearStatus,
SDLRPCParameterNameGPS:gps,
SDLRPCParameterNameHandsOffSteering:@(handsOffSteering),
SDLRPCParameterNameHeadLampStatus:headLampStatus,
@@ -216,7 +213,6 @@ describe(@"getter/setter tests", ^{
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
expect(testResponse.prndl).to(equal(prndl));
#pragma clang diagnostic pop
- expect(testResponse.gearStatus).to(equal(gearStatus));
expect(testResponse.rpm).to(equal(@(rpm)));
expect(testResponse.speed).to(equal(@(speed)));
expect(testResponse.steeringWheelAngle).to(equal(@(steeringWheelAngle)));
diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeVehicleDataResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeVehicleDataResponseSpec.m
index ca8eeb0fa..b6db68a6b 100644
--- a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeVehicleDataResponseSpec.m
+++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLUnsubscribeVehicleDataResponseSpec.m
@@ -280,6 +280,7 @@ describe(@"getter/setter tests", ^{
context(@"should set OEM Custom Vehicle Data", ^{
SDLUnsubscribeVehicleDataResponse *testRequest = [[SDLUnsubscribeVehicleDataResponse alloc] init];
[testRequest setOEMCustomVehicleData:@"customOEMVehicleData" withVehicleDataState:customOEMvehicleDataResult];
+
it(@"expect OEM Custom Vehicle Data to be set properly", ^{
expect([testRequest getOEMCustomVehicleData:@"customOEMVehicleData"]).to(equal(customOEMvehicleDataResult));
});