diff options
author | NicoleYarroch <nicole@livio.io> | 2018-09-07 08:49:15 -0400 |
---|---|---|
committer | NicoleYarroch <nicole@livio.io> | 2018-09-07 08:49:15 -0400 |
commit | 74dd420d7a0612da8b6d06a99e139f595898fc67 (patch) | |
tree | 07c6f0d8ed6675bb01fccd114006a1ec4e80d138 | |
parent | 891d626afeede6ad0a75dbef8df64a83997e7cc4 (diff) | |
download | sdl_ios-feature/issue_942_support_short_and_full_uuid_app_id.tar.gz |
Removed `init` method from RAI classfeature/issue_942_support_short_and_full_uuid_app_id
- added test case to the SDLLifecycleConfiguration spec
Signed-off-by: NicoleYarroch <nicole@livio.io>
-rw-r--r-- | SmartDeviceLink/SDLRegisterAppInterface.h | 7 | ||||
-rw-r--r-- | SmartDeviceLinkTests/DevAPISpecs/SDLLifecycleConfigurationSpec.m | 6 |
2 files changed, 6 insertions, 7 deletions
diff --git a/SmartDeviceLink/SDLRegisterAppInterface.h b/SmartDeviceLink/SDLRegisterAppInterface.h index 4138c2810..a03c438b2 100644 --- a/SmartDeviceLink/SDLRegisterAppInterface.h +++ b/SmartDeviceLink/SDLRegisterAppInterface.h @@ -32,13 +32,6 @@ NS_ASSUME_NONNULL_BEGIN @interface SDLRegisterAppInterface : SDLRPCRequest /** - * Init - * - * @return A SDLRegisterAppInterface object - */ -- (instancetype)init; - -/** * Convenience init for registering the application with a lifecycle configuration. * * @param lifecycleConfiguration Configuration options for SDLManager diff --git a/SmartDeviceLinkTests/DevAPISpecs/SDLLifecycleConfigurationSpec.m b/SmartDeviceLinkTests/DevAPISpecs/SDLLifecycleConfigurationSpec.m index 84c7f4985..100acc9c2 100644 --- a/SmartDeviceLinkTests/DevAPISpecs/SDLLifecycleConfigurationSpec.m +++ b/SmartDeviceLinkTests/DevAPISpecs/SDLLifecycleConfigurationSpec.m @@ -238,6 +238,12 @@ describe(@"When generating the `appId` from the `fullAppId`", ^{ NSString *appId = [SDLLifecycleConfiguration sdlex_shortAppIdFromFullAppId:testFullAppId]; expect(appId).to(match(@"a")); }); + + it(@"should return an empty string if the full app id only has dash characters", ^{ + NSString *testFullAppId = @"-"; + NSString *appId = [SDLLifecycleConfiguration sdlex_shortAppIdFromFullAppId:testFullAppId]; + expect(appId).to(beEmpty()); + }); }); QuickSpecEnd |