FRANotificationTest.m revision a3970d0ea62388e4ede01470a6436eb5c6c92353
2086N/A * Distribution License (the License). You may not use this file except in compliance with the
2086N/A * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
2086N/A * When distributing Covered Software, include this CDDL Header Notice in each file and include
2086N/A * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
2086N/A#import <Foundation/Foundation.h>
2086N/A#import <OCMock/OCMock.h>
2086N/A#import <XCTest/XCTest.h>
2086N/A notification = [[FRANotification alloc] initWithDatabase:database messageId:@"messageId" challenge:@"challenge" timeReceived:[NSDate date] timeToLive:timeToLive];
- (void)tearDown {
[super tearDown];
- (void)testInitialStateOfNotification {
- (void)testShouldApproveNotification {
- (void)testShouldDenyNotification {
[[NSNotificationCenter defaultCenter] addMockObserver:databaseObserverMock name:FRAIdentityDatabaseChangedNotification object:database];
[[databaseObserverMock expect] notificationWithName:FRAIdentityDatabaseChangedNotification object:database userInfo:[OCMArg any]];
@end