summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kinney <michaelakinney@comcast.net>2021-01-28 15:03:16 -0500
committerMichael Kinney <michaelakinney@comcast.net>2021-01-28 15:03:16 -0500
commit255fbdff1122ac3cd2a0ea72fbb71b48b29e9ea8 (patch)
treebc06f228a62df727254b9a23cbbb4de884f58972
parent58d9f05a03d35ca678c5f9b426e60d1702edf88f (diff)
downloadsdl_ios-255fbdff1122ac3cd2a0ea72fbb71b48b29e9ea8.tar.gz
updarte iapdatasession unit tests
-rw-r--r--SmartDeviceLinkTests/TransportSpecs/iAP/SDLIAPDataSessionSpec.m25
1 files changed, 4 insertions, 21 deletions
diff --git a/SmartDeviceLinkTests/TransportSpecs/iAP/SDLIAPDataSessionSpec.m b/SmartDeviceLinkTests/TransportSpecs/iAP/SDLIAPDataSessionSpec.m
index 1b5e4b001..4f354266c 100644
--- a/SmartDeviceLinkTests/TransportSpecs/iAP/SDLIAPDataSessionSpec.m
+++ b/SmartDeviceLinkTests/TransportSpecs/iAP/SDLIAPDataSessionSpec.m
@@ -12,7 +12,7 @@
#import "SDLIAPDataSession.h"
-#import "EAAccessory+OCMock.h"
+#import "EAAccessory+OCMock.m"
#import "SDLIAPConstants.h"
#import "SDLIAPSession.h"
#import "SDLIAPDataSessionDelegate.h"
@@ -44,33 +44,16 @@ describe(@"SDLIAPDataSession", ^{
});
it(@"Should init correctly", ^{
+ expect(dataSession.accessory).to(equal(mockAccessory));
expect(dataSession.delegate).to(equal(mockDelegate));
- expect(dataSession.sendDataQueue).toNot(beNil());
- });
+ expect(dataSession.isSessionInProgress).to(beFalse());
- it(@"Should get correctly", ^{
- expect(dataSession.accessory).to(equal(mockAccessory));
- expect(dataSession.protocolString).to(equal(MultiSessionProtocolString));
- expect(dataSession.isStopped).to(beTrue());
- expect(dataSession.connectionID).to(equal(0));
- expect(dataSession.sessionInProgress).to(beFalse());
});
});
- describe(@"starting a session", ^{
- context(@"it should attempt to retry the session", ^{
- beforeEach(^{
- dataSession = [[SDLIAPDataSession alloc] initWithAccessory:nil delegate:mockDelegate forProtocol:MultiSessionProtocolString];
- });
-
- it(@"Should start correctly", ^{
- [dataSession startSession];
- OCMExpect([mockDelegate dataSessionShouldRetry]);
- });
- });
- });
});
QuickSpecEnd
+