mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 00:02:28 +00:00
Updated submodule
Fixed error in Autotype test (password wrong)
This commit is contained in:
@@ -8,6 +8,6 @@
|
||||
|
||||
#import <SenTestingKit/SenTestingKit.h>
|
||||
|
||||
@interface KPKLegacyLoadingTest : SenTestCase
|
||||
@interface KPKTestLegacyLoading : SenTestCase
|
||||
|
||||
@end
|
||||
@@ -6,7 +6,7 @@
|
||||
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
|
||||
//
|
||||
|
||||
#import "KPKLegacyLoadingTest.h"
|
||||
#import "KPKTestLegacyLoading.h"
|
||||
|
||||
#import "KPKTree+Serializing.h"
|
||||
#import "KPKPassword.h"
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
#import "KPKErrors.h"
|
||||
|
||||
@implementation KPKLegacyLoadingTest
|
||||
@implementation KPKTestLegacyLoading
|
||||
|
||||
- (void)testValidFile {
|
||||
KPKPassword *password = [[KPKPassword alloc] initWithPassword:@"1234" key:nil];
|
||||
@@ -9,7 +9,7 @@
|
||||
#import <SenTestingKit/SenTestingKit.h>
|
||||
@class KPKPassword;
|
||||
|
||||
@interface KPKLegacyWritingTest : SenTestCase {
|
||||
@interface KPKTestLegacyWriting : SenTestCase {
|
||||
NSData *_data;
|
||||
KPKPassword *_password;
|
||||
}
|
||||
@@ -6,13 +6,13 @@
|
||||
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
|
||||
//
|
||||
|
||||
#import "KPKLegacyWritingTest.h"
|
||||
#import "KPKTestLegacyWriting.h"
|
||||
|
||||
|
||||
#import "KPKPassword.h"
|
||||
#import "KPKTree+Serializing.h"
|
||||
|
||||
@implementation KPKLegacyWritingTest
|
||||
@implementation KPKTestLegacyWriting
|
||||
|
||||
- (void)setUp {
|
||||
NSBundle *myBundle = [NSBundle bundleForClass:[self class]];
|
||||
@@ -9,7 +9,7 @@
|
||||
#import <SenTestingKit/SenTestingKit.h>
|
||||
@class KPKPassword;
|
||||
|
||||
@interface KPKXmlLoadingTest : SenTestCase {
|
||||
@interface KPKTestXmlLoading : SenTestCase {
|
||||
@private
|
||||
NSData *_data;
|
||||
KPKPassword *_password;
|
||||
@@ -6,14 +6,14 @@
|
||||
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
|
||||
//
|
||||
|
||||
#import "KPKXmlLoadingTest.h"
|
||||
#import "KPKTestXmlLoading.h"
|
||||
#import "KPKPassword.h"
|
||||
|
||||
#import "KPKTree+Serializing.h"
|
||||
#import "KPKEntry.h"
|
||||
#import "KPKGroup.h"
|
||||
|
||||
@implementation KPKXmlLoadingTest
|
||||
@implementation KPKTestXmlLoading
|
||||
|
||||
- (void)setUp {
|
||||
NSBundle *myBundle = [NSBundle bundleForClass:[self class]];
|
||||
@@ -39,7 +39,7 @@
|
||||
- (void)testAutotypeLoading {
|
||||
NSBundle *myBundle = [NSBundle bundleForClass:[self class]];
|
||||
NSURL *url = [myBundle URLForResource:@"Autotype_test" withExtension:@"kdbx"];
|
||||
KPKPassword *password = [[KPKPassword alloc] initWithPassword:@"text" key:nil];
|
||||
KPKPassword *password = [[KPKPassword alloc] initWithPassword:@"test" key:nil];
|
||||
NSError *error;
|
||||
KPKTree *tree = [[KPKTree alloc] initWithContentsOfUrl:url password:password error:&error];
|
||||
STAssertNotNil(tree, @"Tree shoud be loaded");
|
||||
Reference in New Issue
Block a user