IOSAD-103 use new delegate classes in test IOSAD-103
authorDirk Zimmermann <dirk@pep-project.org>
Mon, 29 Oct 2018 13:44:37 +0100
branchIOSAD-103
changeset 71148331561feb9
parent 710 0ab0cfd9bd71
child 712 35e68745bc4b
IOSAD-103 use new delegate classes in test
pEpObjCTests/PEPSessionTest.m
     1.1 --- a/pEpObjCTests/PEPSessionTest.m	Mon Oct 29 13:44:37 2018 +0100
     1.2 +++ b/pEpObjCTests/PEPSessionTest.m	Mon Oct 29 13:44:37 2018 +0100
     1.3 @@ -16,21 +16,15 @@
     1.4  #import "PEPTestUtils.h"
     1.5  #import "PEPSync.h"
     1.6  #import "PEPSyncSendMessageDelegate.h"
     1.7 -#import "PEPNotifyHandshakeDelegate.h"
     1.8  
     1.9 -@interface SendDelegate : NSObject<PEPSyncSendMessageDelegate>
    1.10 -
    1.11 -@end
    1.12 -
    1.13 -@interface NotifyHandshakeDelegate : NSObject<PEPNotifyHandshakeDelegate>
    1.14 -
    1.15 -@end
    1.16 +#import "PEPSessionTestNotifyHandshakeDelegate.h"
    1.17 +#import "PEPSessionTestSendMessageDelegate.h"
    1.18  
    1.19  @interface PEPSessionTest : XCTestCase
    1.20  
    1.21  @property (nonatomic) PEPSync *sync;
    1.22 -@property (nonatomic) SendDelegate *sendMessageDelegate;
    1.23 -@property (nonatomic) NotifyHandshakeDelegate *notifyHandshakeDelegate;
    1.24 +@property (nonatomic) PEPSessionTestSendMessageDelegate *sendMessageDelegate;
    1.25 +@property (nonatomic) PEPSessionTestNotifyHandshakeDelegate *notifyHandshakeDelegate;
    1.26  
    1.27  @end
    1.28  
    1.29 @@ -40,6 +34,8 @@
    1.30  {
    1.31      [super setUp];
    1.32  
    1.33 +    self.sendMessageDelegate = [PEPSessionTestSendMessageDelegate new];
    1.34 +    self.notifyHandshakeDelegate = [PEPSessionTestNotifyHandshakeDelegate new];
    1.35      self.sync = [[PEPSync alloc]
    1.36                   initWithSyncSendMessageDelegate:self.sendMessageDelegate
    1.37                   notifyHandshakeDelegate:self.notifyHandshakeDelegate];