mirror of
https://github.com/zhigang1992/MagicalRecord.git
synced 2026-01-12 22:48:38 +08:00
46 lines
886 B
Objective-C
46 lines
886 B
Objective-C
//
|
|
// MagicalDataImportTestCase.m
|
|
// Magical Record
|
|
//
|
|
// Created by Saul Mora on 8/16/11.
|
|
// Copyright (c) 2011 Magical Panda Software LLC. All rights reserved.
|
|
//
|
|
|
|
#import "MagicalDataImportTestCase.h"
|
|
|
|
@implementation MagicalDataImportTestCase
|
|
|
|
@synthesize testEntityData = testEntityData__;
|
|
@synthesize testEntity = testEntity__;
|
|
|
|
- (void) setUp
|
|
{
|
|
[MagicalRecord setDefaultModelNamed:@"TestModel.momd"];
|
|
[MagicalRecord setupCoreDataStackWithInMemoryStore];
|
|
//[MagicalRecord setupCoreDataStack];
|
|
|
|
if ([self respondsToSelector:@selector(setupTestData)])
|
|
{
|
|
[self performSelector:@selector(setupTestData)];
|
|
}
|
|
|
|
self.testEntityData = [self dataFromJSONFixture];
|
|
}
|
|
|
|
- (void) tearDown
|
|
{
|
|
[MagicalRecord cleanUp];
|
|
}
|
|
|
|
- (Class) testEntityClass;
|
|
{
|
|
return [NSManagedObject class];
|
|
}
|
|
|
|
-(BOOL)shouldRunOnMainThread
|
|
{
|
|
return YES;
|
|
}
|
|
|
|
@end
|