diff options
Diffstat (limited to 'SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLEncodedSyncPDataSpec.m')
-rwxr-xr-x | SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLEncodedSyncPDataSpec.m | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLEncodedSyncPDataSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLEncodedSyncPDataSpec.m index 739db2b66..d838bcebb 100755 --- a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLEncodedSyncPDataSpec.m +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLEncodedSyncPDataSpec.m @@ -9,7 +9,8 @@ #import <Nimble/Nimble.h> #import "SDLEncodedSyncPData.h" -#import "SDLNames.h" +#import "SDLRPCParameterNames.h" +#import "SDLRPCFunctionNames.h" QuickSpecBegin(SDLEncodedSyncPDataSpec) @@ -17,19 +18,19 @@ describe(@"Getter/Setter Tests", ^ { it(@"Should set and get correctly", ^ { SDLEncodedSyncPData* testRequest = [[SDLEncodedSyncPData alloc] init]; - testRequest.data = [@[@2, @2, @2] mutableCopy]; + testRequest.data = [@[@"2", @"2", @"2"] mutableCopy]; - expect(testRequest.data).to(equal([@[@2, @2, @2] mutableCopy])); + expect(testRequest.data).to(equal([@[@"2", @"2", @"2"] mutableCopy])); }); it(@"Should get correctly when initialized", ^ { - NSMutableDictionary<NSString *, id> *dict = [@{SDLNameRequest: - @{SDLNameParameters: - @{SDLNameData:[@[@2, @2, @2] mutableCopy]}, - SDLNameOperationName:SDLNameEncodedSyncPData}} mutableCopy]; + NSMutableDictionary<NSString *, id> *dict = [@{SDLRPCParameterNameRequest: + @{SDLRPCParameterNameParameters: + @{SDLRPCParameterNameData:[@[@"2", @"2", @"2"] mutableCopy]}, + SDLRPCParameterNameOperationName:SDLRPCFunctionNameEncodedSyncPData}} mutableCopy]; SDLEncodedSyncPData* testRequest = [[SDLEncodedSyncPData alloc] initWithDictionary:dict]; - expect(testRequest.data).to(equal([@[@2, @2, @2] mutableCopy])); + expect(testRequest.data).to(equal([@[@"2", @"2", @"2"] mutableCopy])); }); it(@"Should return nil if not set", ^ { |