Fixed teste, resources still missing

Signed-off-by: michael starke <michael.starke@hicknhack-software.com>
This commit is contained in:
michael starke
2015-10-29 18:37:06 +01:00
parent 8ddf2373dc
commit 40ee7f5163
6 changed files with 10 additions and 15 deletions

View File

@@ -9,7 +9,7 @@
#import <XCTest/XCTest.h>
#import "MPDocument.h"
#import "KPKTree.h"
#import "KeePassKit/KeePassKit.h"
@interface MPDatabaseLoading : XCTestCase
@@ -19,7 +19,7 @@
- (void)testLoadVersion1 {
NSBundle *myBundle = [NSBundle bundleForClass:[self class]];
NSBundle *myBundle = [NSBundle bundleForClass:[KPKTree class]];
NSURL *url = [myBundle URLForResource:@"Test_Password_1234" withExtension:@"kdb"];
NSError *error = nil;
MPDocument *document = [[MPDocument alloc] initWithContentsOfURL:url ofType:@"kdb" error:&error];
@@ -33,7 +33,7 @@
}
- (void)testVersion1WrongPassword {
NSBundle *myBundle = [NSBundle bundleForClass:[self class]];
NSBundle *myBundle = [NSBundle bundleForClass:[KPKTree class]];
NSURL *url = [myBundle URLForResource:@"Test_Password_1234" withExtension:@"kdb"];
NSError *error = nil;
MPDocument *document = [[MPDocument alloc] initWithContentsOfURL:url ofType:@"kdb" error:&error];
@@ -45,7 +45,7 @@
}
- (void)testLoadDatabaseVerions2 {
NSBundle *myBundle = [NSBundle bundleForClass:[self class]];
NSBundle *myBundle = [NSBundle bundleForClass:[KPKTree class]];
NSURL *url = [myBundle URLForResource:@"Test_Password_1234" withExtension:@"kdbx"];
NSError *error = nil;
MPDocument *document = [[MPDocument alloc] initWithContentsOfURL:url ofType:@"kdbx" error:&error];

View File

@@ -10,7 +10,7 @@
#import <XCTest/XCTest.h>
#import "MPDocument.h"
#import "KPKCompositeKey.h"
#import "KeePassKit/KeePassKit.h"
@interface MPDatabasePasswordAndKeyfile : XCTestCase {
MPDocument *_database;

View File

@@ -9,9 +9,7 @@
#import <Cocoa/Cocoa.h>
#import <XCTest/XCTest.h>
#import "KPKTree.h"
#import "KPKGroup.h"
#import "KPKEntry.h"
#import "KeePassKit/KeePassKit.h"
@interface MPDatabaseSearch : XCTestCase

View File

@@ -17,10 +17,7 @@
#import "MPKeyMapper.h"
#import "KPKEntry.h"
#import "KPKAttribute.h"
#import "KPKAutotype.h"
#import "KPKWindowAssociation.h"
#import "KeePassKit/KeePassKit.h"
@interface MPTestAutotype : XCTestCase
@property (strong) KPKEntry *entry;

View File

@@ -9,9 +9,7 @@
#import <XCTest/XCTest.h>
#import "MPDocument.h"
#import "KPKTree.h"
#import "KPKCompositeKey.h"
#import "KeePassKit/KeePassKit.h"
@interface MPTestDocument : XCTestCase
@end