Using new KeePassKit API

This commit is contained in:
michael starke
2015-07-23 10:52:00 +02:00
parent 0c315eef31
commit 3753ba4128
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@
NSBundle *myBundle = [NSBundle bundleForClass:[self class]]; NSBundle *myBundle = [NSBundle bundleForClass:[self class]];
NSURL *url = [myBundle URLForResource:@"Keepass2Key" withExtension:@"xml"]; NSURL *url = [myBundle URLForResource:@"Keepass2Key" withExtension:@"xml"];
NSError *error; NSError *error;
NSData *data = [NSData dataWithContentsOfKeyFile:url version:KPKXmlVersion error:&error]; NSData *data = [NSData dataWithContentsOfKeyFile:url error:&error];
XCTAssertNotNil(data, @"Data should be loaded"); XCTAssertNotNil(data, @"Data should be loaded");
XCTAssertNil(error, @"No error should occur on keyfile loading"); XCTAssertNil(error, @"No error should occur on keyfile loading");
} }