diff options
author | Muller, Alexander (A.) <amulle19@ford.com> | 2016-12-02 12:45:25 -0800 |
---|---|---|
committer | Muller, Alexander (A.) <amulle19@ford.com> | 2016-12-02 12:45:25 -0800 |
commit | 7cf4a0d9057fc03c3cb142d64a5d17e5affcea8b (patch) | |
tree | a7a1cb6c5304478de9c34015b4efc86c7ed709ba | |
parent | f38c4fa74562479f0771f560156afd646b827315 (diff) | |
download | sdl_ios-hotfix/issue_475.tar.gz |
Added tests for SDLNotificationDispatcher's new methods, and updated them to match changed classnames.hotfix/issue_475
-rw-r--r-- | SmartDeviceLink/SDLNotificationDispatcher.m | 8 | ||||
-rw-r--r-- | SmartDeviceLinkTests/DevAPISpecs/SDLNotificationDispatcherSpec.m | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/SmartDeviceLink/SDLNotificationDispatcher.m b/SmartDeviceLink/SDLNotificationDispatcher.m index bbf6cc713..cae44a5fd 100644 --- a/SmartDeviceLink/SDLNotificationDispatcher.m +++ b/SmartDeviceLink/SDLNotificationDispatcher.m @@ -146,7 +146,7 @@ NS_ASSUME_NONNULL_BEGIN [self postRPCResponseNotification:SDLDidReceiveGetVehicleDataResponse response:response]; } -- (void)onGetWaypointsResponse:(SDLGetWaypointsResponse *)response { +- (void)onGetWayPointsResponse:(SDLGetWaypointsResponse *)response { [self postRPCResponseNotification:SDLDidReceiveGetWaypointsResponse response:response]; } @@ -226,7 +226,7 @@ NS_ASSUME_NONNULL_BEGIN [self postRPCResponseNotification:SDLDidReceiveSubscribeVehicleDataResponse response:response]; } -- (void)onSubscribeWaypointsResponse:(SDLSubscribeWaypointsResponse *)response { +- (void)onSubscribeWayPointsResponse:(SDLSubscribeWaypointsResponse *)response { [self postRPCResponseNotification:SDLDidReceiveSubscribeWaypointsResponse response:response]; } @@ -250,7 +250,7 @@ NS_ASSUME_NONNULL_BEGIN [self postRPCResponseNotification:SDLDidReceiveUnsubscribeVehicleDataResponse response:response]; } -- (void)onUnsubscribeWaypointsResponse:(SDLUnsubscribeWaypointsResponse *)response { +- (void)onUnsubscribeWayPointsResponse:(SDLUnsubscribeWaypointsResponse *)response { [self postRPCResponseNotification:SDLDidReceiveUnsubscribeWaypointsResponse response:response]; } @@ -318,7 +318,7 @@ NS_ASSUME_NONNULL_BEGIN [self postRPCNotificationNotification:SDLDidReceiveVehicleDataNotification notification:notification]; } -- (void)onOnWaypointChange:(SDLOnWaypointChange *)notification { +- (void)onOnWayPointChange:(SDLOnWaypointChange *)notification { [self postRPCNotificationNotification:SDLDidReceiveWaypointNotification notification:notification]; } diff --git a/SmartDeviceLinkTests/DevAPISpecs/SDLNotificationDispatcherSpec.m b/SmartDeviceLinkTests/DevAPISpecs/SDLNotificationDispatcherSpec.m index ba3b2f1c1..f43a8535b 100644 --- a/SmartDeviceLinkTests/DevAPISpecs/SDLNotificationDispatcherSpec.m +++ b/SmartDeviceLinkTests/DevAPISpecs/SDLNotificationDispatcherSpec.m @@ -38,6 +38,7 @@ describe(@"a notification dispatcher", ^{ expect(@([testDispatcher respondsToSelector:@selector(onGenericResponse:)])).to(beTruthy()); expect(@([testDispatcher respondsToSelector:@selector(onGetDTCsResponse:)])).to(beTruthy()); expect(@([testDispatcher respondsToSelector:@selector(onGetVehicleDataResponse:)])).to(beTruthy()); + expect(@([testDispatcher respondsToSelector:@selector(onGetWayPointsResponse:)])).to(beTruthy()); expect(@([testDispatcher respondsToSelector:@selector(onReceivedLockScreenIcon:)])).to(beTruthy()); expect(@([testDispatcher respondsToSelector:@selector(onOnAppInterfaceUnregistered:)])).to(beTruthy()); expect(@([testDispatcher respondsToSelector:@selector(onOnAudioPassThru:)])).to(beTruthy()); @@ -53,6 +54,7 @@ describe(@"a notification dispatcher", ^{ expect(@([testDispatcher respondsToSelector:@selector(onOnTBTClientState:)])).to(beTruthy()); expect(@([testDispatcher respondsToSelector:@selector(onOnTouchEvent:)])).to(beTruthy()); expect(@([testDispatcher respondsToSelector:@selector(onOnVehicleData:)])).to(beTruthy()); + expect(@([testDispatcher respondsToSelector:@selector(onOnWayPointChange:)])).to(beTruthy()); expect(@([testDispatcher respondsToSelector:@selector(onPerformAudioPassThruResponse:)])).to(beTruthy()); expect(@([testDispatcher respondsToSelector:@selector(onPerformInteractionResponse:)])).to(beTruthy()); expect(@([testDispatcher respondsToSelector:@selector(onPutFileResponse:)])).to(beTruthy()); @@ -71,11 +73,13 @@ describe(@"a notification dispatcher", ^{ expect(@([testDispatcher respondsToSelector:@selector(onSpeakResponse:)])).to(beTruthy()); expect(@([testDispatcher respondsToSelector:@selector(onSubscribeButtonResponse:)])).to(beTruthy()); expect(@([testDispatcher respondsToSelector:@selector(onSubscribeVehicleDataResponse:)])).to(beTruthy()); + expect(@([testDispatcher respondsToSelector:@selector(onSubscribeWayPointsResponse:)])).to(beTruthy()); expect(@([testDispatcher respondsToSelector:@selector(onSyncPDataResponse:)])).to(beTruthy()); expect(@([testDispatcher respondsToSelector:@selector(onUpdateTurnListResponse:)])).to(beTruthy()); expect(@([testDispatcher respondsToSelector:@selector(onUnregisterAppInterfaceResponse:)])).to(beTruthy()); expect(@([testDispatcher respondsToSelector:@selector(onUnsubscribeButtonResponse:)])).to(beTruthy()); expect(@([testDispatcher respondsToSelector:@selector(onUnsubscribeVehicleDataResponse:)])).to(beTruthy()); + expect(@([testDispatcher respondsToSelector:@selector(onUnsubscribeWayPointsResponse:)])).to(beTruthy()); }); describe(@"when told to post a notification", ^{ |