Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing test frameworks :(

Making each file more standalone for piecemeal includes, or to allow includes from other than the main PCH file
  • Loading branch information...
commit 5c5ea831ec442f8419e4925aac5d04558a750900 1 parent 3d37bdb
@casademora casademora authored
Showing with 364 additions and 72 deletions.
  1. +3 −0  MagicalRecord/Categories/DataImport/NSAttributeDescription+MagicalDataImport.m
  2. +1 −0  MagicalRecord/Categories/DataImport/NSRelationshipDescription+MagicalDataImport.m
  3. +6 −0 MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalAggregation.m
  4. +3 −0  MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalFinders.m
  5. +2 −0  MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalRequests.m
  6. +3 −0  MagicalRecord/Categories/NSManagedObjectContext/NSManagedObjectContext+MagicalObserving.m
  7. +3 −0  MagicalRecord/Categories/NSManagedObjectContext/NSManagedObjectContext+MagicalSaves.m
  8. +2 −0  MagicalRecord/Categories/NSManagedObjectContext/NSManagedObjectContext+MagicalThreading.m
  9. +3 −0  MagicalRecord/Core/MagicalRecord+Setup.m
  10. +2 −0  MagicalRecord/Core/MagicalRecord+ShorthandSupport.h
  11. +2 −0  MagicalRecord/Core/MagicalRecord+iCloud.m
  12. +24 −0 MagicalRecord/Core/MagicalRecord.h
  13. +18 −27 MagicalRecord/CoreData+MagicalRecord.h
  14. +48 −44 Project Files/Magical Record.xcodeproj/project.pbxproj
  15. +1 −1  Project Files/Unit Tests/ImportSingleEntityWithNoRelationshipsTests.m
  16. +1 −0  Project Files/iOS App Unit Tests/Frameworks/OCMock.framework/Headers
  17. +1 −0  Project Files/iOS App Unit Tests/Frameworks/OCMock.framework/OCMock
  18. +1 −0  Project Files/iOS App Unit Tests/Frameworks/OCMock.framework/Resources
  19. +15 −0 ...Files/iOS App Unit Tests/Frameworks/OCMock.framework/Versions/A/Headers/NSNotificationCenter+OCMAdditions.h
  20. +33 −0 Project Files/iOS App Unit Tests/Frameworks/OCMock.framework/Versions/A/Headers/OCMArg.h
  21. +64 −0 Project Files/iOS App Unit Tests/Frameworks/OCMock.framework/Versions/A/Headers/OCMConstraint.h
  22. +10 −0 Project Files/iOS App Unit Tests/Frameworks/OCMock.framework/Versions/A/Headers/OCMock.h
  23. +43 −0 Project Files/iOS App Unit Tests/Frameworks/OCMock.framework/Versions/A/Headers/OCMockObject.h
  24. +32 −0 Project Files/iOS App Unit Tests/Frameworks/OCMock.framework/Versions/A/Headers/OCMockRecorder.h
  25. BIN  Project Files/iOS App Unit Tests/Frameworks/OCMock.framework/Versions/A/OCMock
  26. +42 −0 Project Files/iOS App Unit Tests/Frameworks/OCMock.framework/Versions/A/Resources/Info.plist
  27. BIN  Project Files/iOS App Unit Tests/Frameworks/OCMock.framework/Versions/A/Resources/en.lproj/InfoPlist.strings
  28. +1 −0  Project Files/iOS App Unit Tests/Frameworks/OCMock.framework/Versions/Current
  29. BIN  Project Files/iOS App Unit Tests/Frameworks/OCMockLibrary/libOCMock.a
View
3  MagicalRecord/Categories/DataImport/NSAttributeDescription+MagicalDataImport.m
@@ -7,6 +7,8 @@
//
#import "NSAttributeDescription+MagicalDataImport.h"
+#import "NSManagedObject+MagicalDataImport.h"
+#import "MagicalImportFunctions.h"
@implementation NSAttributeDescription (MagicalRecord_DataImport)
@@ -43,4 +45,5 @@ - (id) MR_valueForKeyPath:(NSString *)keyPath fromObjectData:(id)objectData;
return value == [NSNull null] ? nil : value;
}
+
@end
View
1  MagicalRecord/Categories/DataImport/NSRelationshipDescription+MagicalDataImport.m
@@ -8,6 +8,7 @@
#import "NSRelationshipDescription+MagicalDataImport.h"
#import "NSManagedObject+MagicalDataImport.h"
+#import "MagicalImportFunctions.h"
#import "MagicalRecord.h"
@implementation NSRelationshipDescription (MagicalRecord_DataImport)
View
6 MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalAggregation.m
@@ -7,6 +7,12 @@
//
#import "NSManagedObject+MagicalAggregation.h"
+#import "NSManagedObjectContext+MagicalRecord.h"
+#import "NSManagedObjectContext+MagicalThreading.h"
+#import "NSManagedObject+MagicalRequests.h"
+#import "NSManagedObject+MagicalRecord.h"
+#import "NSManagedObject+MagicalFinders.h"
+#import "MagicalRecord+ErrorHandling.h"
@implementation NSManagedObject (MagicalAggregation)
View
3  MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalFinders.m
@@ -7,6 +7,9 @@
//
#import "NSManagedObject+MagicalFinders.h"
+#import "NSManagedObject+MagicalRequests.h"
+#import "NSManagedObject+MagicalRecord.h"
+#import "NSManagedObjectContext+MagicalThreading.h"
@implementation NSManagedObject (MagicalFinders)
View
2  MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalRequests.m
@@ -7,6 +7,8 @@
//
#import "NSManagedObject+MagicalRequests.h"
+#import "NSManagedObject+MagicalRecord.h"
+#import "NSManagedObjectContext+MagicalThreading.h"
@implementation NSManagedObject (MagicalRequests)
View
3  MagicalRecord/Categories/NSManagedObjectContext/NSManagedObjectContext+MagicalObserving.m
@@ -7,6 +7,9 @@
//
#import "NSManagedObjectContext+MagicalObserving.h"
+#import "NSManagedObjectContext+MagicalRecord.h"
+#import "MagicalRecord.h"
+#import "MagicalRecord+iCloud.h"
static void const * kMagicalRecordNotifiesMainContextAssociatedValueKey = @"kMagicalRecordNotifiesMainContextOnSave";
NSString * const kMagicalRecordDidMergeChangesFromiCloudNotification = @"kMagicalRecordDidMergeChangesFromiCloudNotification";
View
3  MagicalRecord/Categories/NSManagedObjectContext/NSManagedObjectContext+MagicalSaves.m
@@ -7,6 +7,9 @@
//
#import "NSManagedObjectContext+MagicalSaves.h"
+#import "MagicalRecord+ErrorHandling.h"
+#import "NSManagedObjectContext+MagicalRecord.h"
+#import "MagicalRecord.h"
@interface NSManagedObjectContext (InternalMagicalSaves)
View
2  MagicalRecord/Categories/NSManagedObjectContext/NSManagedObjectContext+MagicalThreading.m
@@ -7,6 +7,8 @@
//
#import "NSManagedObjectContext+MagicalThreading.h"
+#import "NSManagedObject+MagicalRecord.h"
+#import "NSManagedObjectContext+MagicalRecord.h"
static NSString const * kMagicalRecordManagedObjectContextKey = @"MagicalRecord_NSManagedObjectContextForThreadKey";
View
3  MagicalRecord/Core/MagicalRecord+Setup.m
@@ -7,6 +7,9 @@
//
#import "MagicalRecord+Setup.h"
+#import "NSManagedObject+MagicalRecord.h"
+#import "NSPersistentStoreCoordinator+MagicalRecord.h"
+#import "NSManagedObjectContext+MagicalRecord.h"
@implementation MagicalRecord (Setup)
View
2  MagicalRecord/Core/MagicalRecord+ShorthandSupport.h
@@ -10,6 +10,8 @@
@interface MagicalRecord (ShorthandSupport)
+#ifdef MR_SHORTHAND
+ (void) swizzleShorthandMethods;
+#endif
@end
View
2  MagicalRecord/Core/MagicalRecord+iCloud.m
@@ -7,6 +7,8 @@
//
#import "MagicalRecord+iCloud.h"
+#import "NSPersistentStoreCoordinator+MagicalRecord.h"
+#import "NSManagedObjectContext+MagicalRecord.h"
static BOOL _iCloudEnabled = NO;
View
24 MagicalRecord/Core/MagicalRecord.h
@@ -9,6 +9,30 @@
#define MAC_PLATFORM_ONLY YES
#endif
+// enable to use caches for the fetchedResultsControllers (iOS only)
+// #define STORE_USE_CACHE
+
+#define kCreateNewCoordinatorOnBackgroundOperations 0
+
+#ifndef MR_ENABLE_ACTIVE_RECORD_LOGGING
+ #ifdef DEBUG
+ #define MR_ENABLE_ACTIVE_RECORD_LOGGING 1
+ #else
+ #define MR_ENABLE_ACTIVE_RECORD_LOGGING 0
+ #endif
+#endif
+
+#if MR_ENABLE_ACTIVE_RECORD_LOGGING != 0
+ #ifdef LOG_VERBOSE
+ extern int ddLogLevel;
+ #define MRLog(...) DDLogVerbose(__VA_ARGS__)
+ #else
+ #define MRLog(...) NSLog(@"%s(%p) %@", __PRETTY_FUNCTION__, self, [NSString stringWithFormat:__VA_ARGS__])
+ #endif
+#else
+ #define MRLog(...) ((void)0)
+#endif
+
#ifdef NS_BLOCKS_AVAILABLE
@class NSManagedObjectContext;
View
45 MagicalRecord/CoreData+MagicalRecord.h
@@ -1,38 +1,14 @@
-// enable to use caches for the fetchedResultsControllers (iOS only)
-// #define STORE_USE_CACHE
-
-#define kCreateNewCoordinatorOnBackgroundOperations 0
-
-#ifndef MR_ENABLE_ACTIVE_RECORD_LOGGING
- #ifdef DEBUG
- #define MR_ENABLE_ACTIVE_RECORD_LOGGING 1
- #else
- #define MR_ENABLE_ACTIVE_RECORD_LOGGING 0
- #endif
-#endif
-
-#ifdef __OBJC__
-
-#if MR_ENABLE_ACTIVE_RECORD_LOGGING != 0
-#ifdef LOG_VERBOSE
- #define MRLog(...) DDLogVerbose(__VA_ARGS__)
-#else
- #define MRLog(...) NSLog(@"%s(%p) %@", __PRETTY_FUNCTION__, self, [NSString stringWithFormat:__VA_ARGS__])
-#endif
-#else
- #define MRLog(...) ((void)0)
-#endif
-
-
#ifndef NS_BLOCKS_AVAILABLE
-#warning MagicalRecord requires blocks
+ #warning MagicalRecord requires blocks
#endif
+#ifdef __OBJC__
// #if !( __has_feature(objc_arc) && __has_feature(objc_arc_weak) )
// #error MagicalRecord now requires ARC to be enabled
// #endif
+ #import <CoreFoundation/CoreFoundation.h>
#import <CoreData/CoreData.h>
#ifdef MR_SHORTHAND
@@ -69,3 +45,18 @@
#import "NSEntityDescription+MagicalDataImport.h"
#endif
+g.h"
+ #import "NSPersistentStoreCoordinator+MagicalRecord.h"
+ #import "NSManagedObjectModel+MagicalRecord.h"
+ #import "NSPersistentStore+MagicalRecord.h"
+
+ #import "MagicalImportFunctions.h"
+ #import "NSManagedObject+MagicalDataImport.h"
+ #import "NSNumber+MagicalDataImport.h"
+ #import "NSObject+MagicalDataImport.h"
+ #import "NSString+MagicalDataImport.h"
+ #import "NSAttributeDescription+MagicalDataImport.h"
+ #import "NSRelationshipDescription+MagicalDataImport.h"
+ #import "NSEntityDescription+MagicalDataImport.h"
+
+#endif
View
92 Project Files/Magical Record.xcodeproj/project.pbxproj
@@ -25,13 +25,12 @@
C721C80713D0C3CD0097AB6F /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = C721C80513D0C3CD0097AB6F /* InfoPlist.strings */; };
C721C82413D0C45E0097AB6F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C721C7E313D0C3A00097AB6F /* Foundation.framework */; };
C721C82513D0C4660097AB6F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C721C7E313D0C3A00097AB6F /* Foundation.framework */; };
- C721C83C13D0C6390097AB6F /* GHUnitIOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C721C82F13D0C6390097AB6F /* GHUnitIOS.framework */; };
- C721C83D13D0C6390097AB6F /* OCHamcrestIOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C721C83013D0C6390097AB6F /* OCHamcrestIOS.framework */; };
- C721C84E13D0C6460097AB6F /* GHUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C721C84113D0C6460097AB6F /* GHUnit.framework */; };
C738127A1410398A0054EEF0 /* ImportSingleEntityRelatedToManyMappedEntitiesUsingListOfPrimaryKeysTests.m in Sources */ = {isa = PBXBuildFile; fileRef = C73812781410383B0054EEF0 /* ImportSingleEntityRelatedToManyMappedEntitiesUsingListOfPrimaryKeysTests.m */; };
C738127B141039900054EEF0 /* SingleEntityRelatedToManyMappedEntitiesUsingListOfPrimaryKeys.json in Resources */ = {isa = PBXBuildFile; fileRef = C7381275141037E80054EEF0 /* SingleEntityRelatedToManyMappedEntitiesUsingListOfPrimaryKeys.json */; };
+ C74F8E601555E39D0008B054 /* GHUnitIOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C74F8E541555E39D0008B054 /* GHUnitIOS.framework */; };
+ C74F8E611555E39D0008B054 /* OCHamcrestIOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C74F8E551555E39D0008B054 /* OCHamcrestIOS.framework */; };
+ C74F8E621555E39D0008B054 /* libOCMock.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C74F8E5F1555E39D0008B054 /* libOCMock.a */; };
C753897413DB61CE002B2F57 /* GHUnitTestMain.m in Sources */ = {isa = PBXBuildFile; fileRef = C753897313DB61CE002B2F57 /* GHUnitTestMain.m */; };
- C753897613DB6322002B2F57 /* GHUnit.framework in Copy GHUnit into App Bundle */ = {isa = PBXBuildFile; fileRef = C721C84113D0C6460097AB6F /* GHUnit.framework */; };
C75C7D6B147220D400D0C2FE /* generateShorthandFile.rb in Resources */ = {isa = PBXBuildFile; fileRef = C75C7D69147220D300D0C2FE /* generateShorthandFile.rb */; };
C763783213E10BEC0009A6CA /* GHUnitIOSTestMain.m in Sources */ = {isa = PBXBuildFile; fileRef = C763783113E10BEC0009A6CA /* GHUnitIOSTestMain.m */; };
C76AF7E513DBC08F00CE2E05 /* FixtureHelpers.m in Sources */ = {isa = PBXBuildFile; fileRef = C77E5FBA13D0D2AE00298F87 /* FixtureHelpers.m */; };
@@ -44,8 +43,6 @@
C76AF7EC13DBC08F00CE2E05 /* NSManagedObjectHelperTests.m in Sources */ = {isa = PBXBuildFile; fileRef = C70B6E7C13D0F69A00709450 /* NSManagedObjectHelperTests.m */; };
C76AF7ED13DBC09800CE2E05 /* SampleJSONDataForImport.json in Resources */ = {isa = PBXBuildFile; fileRef = C77E5FB413D0D1EC00298F87 /* SampleJSONDataForImport.json */; };
C76AF7EE13DBC09B00CE2E05 /* SingleEntityWithNoRelationships.plist in Resources */ = {isa = PBXBuildFile; fileRef = C77E5FB213D0D1D100298F87 /* SingleEntityWithNoRelationships.plist */; };
- C76AF7F213DBC12500CE2E05 /* OCHamcrest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C721C84213D0C6460097AB6F /* OCHamcrest.framework */; };
- C76AF7F413DBC34300CE2E05 /* OCHamcrest.framework in Copy OCHamcrest into App Bundle */ = {isa = PBXBuildFile; fileRef = C721C84213D0C6460097AB6F /* OCHamcrest.framework */; };
C76AF7FB13DBEB5500CE2E05 /* ImportSingleRelatedEntityTests.m in Sources */ = {isa = PBXBuildFile; fileRef = C76AF7FA13DBEB5500CE2E05 /* ImportSingleRelatedEntityTests.m */; };
C76AF7FC13DBEB5500CE2E05 /* ImportSingleRelatedEntityTests.m in Sources */ = {isa = PBXBuildFile; fileRef = C76AF7FA13DBEB5500CE2E05 /* ImportSingleRelatedEntityTests.m */; };
C76AF82A13DBEE5A00CE2E05 /* SingleRelatedEntity.json in Resources */ = {isa = PBXBuildFile; fileRef = C76AF82913DBEE5A00CE2E05 /* SingleRelatedEntity.json */; };
@@ -60,8 +57,6 @@
C77E5FBB13D0D2AE00298F87 /* FixtureHelpers.m in Sources */ = {isa = PBXBuildFile; fileRef = C77E5FBA13D0D2AE00298F87 /* FixtureHelpers.m */; };
C784349013F0FEE000463CEE /* _MappedEntity.m in Sources */ = {isa = PBXBuildFile; fileRef = C784348C13F0FEE000463CEE /* _MappedEntity.m */; };
C784349213F0FEE000463CEE /* MappedEntity.m in Sources */ = {isa = PBXBuildFile; fileRef = C784348E13F0FEE000463CEE /* MappedEntity.m */; };
- C789901B150692140016F493 /* OCMock.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FD73E54814AC4D9A00922CA4 /* OCMock.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
- C789901C150692860016F493 /* libOCMock.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C721C83B13D0C6390097AB6F /* libOCMock.a */; };
C78990211506937E0016F493 /* MappedEntity.m in Sources */ = {isa = PBXBuildFile; fileRef = C784348E13F0FEE000463CEE /* MappedEntity.m */; };
C7899022150693D50016F493 /* _SingleEntityRelatedToMappedEntityWithSecondaryMappings.m in Sources */ = {isa = PBXBuildFile; fileRef = C78F8FDC13FDC3FD00549DD8 /* _SingleEntityRelatedToMappedEntityWithSecondaryMappings.m */; };
C7899023150693D50016F493 /* _AbstractRelatedEntity.m in Sources */ = {isa = PBXBuildFile; fileRef = C7BD887913DBFA6200274567 /* _AbstractRelatedEntity.m */; };
@@ -176,12 +171,9 @@
C7DD7306150F832B00216827 /* MagicalRecord+ShorthandSupport.m in Sources */ = {isa = PBXBuildFile; fileRef = C7DD72D0150F832A00216827 /* MagicalRecord+ShorthandSupport.m */; };
C7DD7307150F832B00216827 /* MagicalRecord.m in Sources */ = {isa = PBXBuildFile; fileRef = C7DD72D2150F832A00216827 /* MagicalRecord.m */; };
C7DD7308150F832B00216827 /* MagicalRecord.m in Sources */ = {isa = PBXBuildFile; fileRef = C7DD72D2150F832A00216827 /* MagicalRecord.m */; };
- C7E37A7C14157BFE00CE9BF5 /* libOCMock.a in CopyFiles */ = {isa = PBXBuildFile; fileRef = C721C83B13D0C6390097AB6F /* libOCMock.a */; };
C7E736DF1402FE64005657C9 /* SingleEntityWithNoRelationships.json in Resources */ = {isa = PBXBuildFile; fileRef = C7E736DE1402FE64005657C9 /* SingleEntityWithNoRelationships.json */; };
C7F5EEB2148DC76700964607 /* (null) in Sources */ = {isa = PBXBuildFile; };
- FD73E53F14AC462F00922CA4 /* OCMock.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C721C84313D0C6460097AB6F /* OCMock.framework */; };
FD73E54614AC4AC700922CA4 /* MagicalDataImportTestCase.m in Sources */ = {isa = PBXBuildFile; fileRef = C7913B9C13FAFC13007E09CC /* MagicalDataImportTestCase.m */; };
- FD73E54914AC4D9A00922CA4 /* OCMock.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = FD73E54814AC4D9A00922CA4 /* OCMock.framework */; };
/* End PBXBuildFile section */
/* Begin PBXBuildRule section */
@@ -204,7 +196,6 @@
dstPath = "";
dstSubfolderSpec = 10;
files = (
- C753897613DB6322002B2F57 /* GHUnit.framework in Copy GHUnit into App Bundle */,
);
name = "Copy GHUnit into App Bundle";
runOnlyForDeploymentPostprocessing = 0;
@@ -215,7 +206,6 @@
dstPath = "";
dstSubfolderSpec = 16;
files = (
- C76AF7F413DBC34300CE2E05 /* OCHamcrest.framework in Copy OCHamcrest into App Bundle */,
);
name = "Copy OCHamcrest into App Bundle";
runOnlyForDeploymentPostprocessing = 0;
@@ -226,7 +216,6 @@
dstPath = "$(BUILT_PRODUCTS_DIR)";
dstSubfolderSpec = 0;
files = (
- C7E37A7C14157BFE00CE9BF5 /* libOCMock.a in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -236,7 +225,6 @@
dstPath = "";
dstSubfolderSpec = 10;
files = (
- FD73E54914AC4D9A00922CA4 /* OCMock.framework in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -265,12 +253,6 @@
C721C80413D0C3CD0097AB6F /* iOS App Unit Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "iOS App Unit Tests-Info.plist"; sourceTree = "<group>"; };
C721C80613D0C3CD0097AB6F /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
C721C80A13D0C3CD0097AB6F /* iOS App Unit Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "iOS App Unit Tests-Prefix.pch"; sourceTree = "<group>"; };
- C721C82F13D0C6390097AB6F /* GHUnitIOS.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = GHUnitIOS.framework; sourceTree = "<group>"; };
- C721C83013D0C6390097AB6F /* OCHamcrestIOS.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = OCHamcrestIOS.framework; sourceTree = "<group>"; };
- C721C83B13D0C6390097AB6F /* libOCMock.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libOCMock.a; sourceTree = "<group>"; };
- C721C84113D0C6460097AB6F /* GHUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = GHUnit.framework; sourceTree = "<group>"; };
- C721C84213D0C6460097AB6F /* OCHamcrest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = OCHamcrest.framework; sourceTree = "<group>"; };
- C721C84313D0C6460097AB6F /* OCMock.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = OCMock.framework; sourceTree = "<group>"; };
C721C84713D0C6460097AB6F /* NSNotificationCenter+OCMAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSNotificationCenter+OCMAdditions.h"; sourceTree = "<group>"; };
C721C84813D0C6460097AB6F /* OCMArg.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OCMArg.h; sourceTree = "<group>"; };
C721C84913D0C6460097AB6F /* OCMConstraint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OCMConstraint.h; sourceTree = "<group>"; };
@@ -280,6 +262,15 @@
C721C84D13D0C6460097AB6F /* libOCMock.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libOCMock.a; sourceTree = "<group>"; };
C7381275141037E80054EEF0 /* SingleEntityRelatedToManyMappedEntitiesUsingListOfPrimaryKeys.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = SingleEntityRelatedToManyMappedEntitiesUsingListOfPrimaryKeys.json; path = "Unit Tests/Fixtures/SingleEntityRelatedToManyMappedEntitiesUsingListOfPrimaryKeys.json"; sourceTree = "<group>"; };
C73812781410383B0054EEF0 /* ImportSingleEntityRelatedToManyMappedEntitiesUsingListOfPrimaryKeysTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ImportSingleEntityRelatedToManyMappedEntitiesUsingListOfPrimaryKeysTests.m; path = "Unit Tests/Fixtures/ImportSingleEntityRelatedToManyMappedEntitiesUsingListOfPrimaryKeysTests.m"; sourceTree = "<group>"; };
+ C74F8E541555E39D0008B054 /* GHUnitIOS.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = GHUnitIOS.framework; sourceTree = "<group>"; };
+ C74F8E551555E39D0008B054 /* OCHamcrestIOS.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = OCHamcrestIOS.framework; sourceTree = "<group>"; };
+ C74F8E591555E39D0008B054 /* NSNotificationCenter+OCMAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSNotificationCenter+OCMAdditions.h"; sourceTree = "<group>"; };
+ C74F8E5A1555E39D0008B054 /* OCMArg.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OCMArg.h; sourceTree = "<group>"; };
+ C74F8E5B1555E39D0008B054 /* OCMConstraint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OCMConstraint.h; sourceTree = "<group>"; };
+ C74F8E5C1555E39D0008B054 /* OCMock.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OCMock.h; sourceTree = "<group>"; };
+ C74F8E5D1555E39D0008B054 /* OCMockObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OCMockObject.h; sourceTree = "<group>"; };
+ C74F8E5E1555E39D0008B054 /* OCMockRecorder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OCMockRecorder.h; sourceTree = "<group>"; };
+ C74F8E5F1555E39D0008B054 /* libOCMock.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libOCMock.a; sourceTree = "<group>"; };
C753897313DB61CE002B2F57 /* GHUnitTestMain.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GHUnitTestMain.m; sourceTree = "<group>"; };
C75C7D69147220D300D0C2FE /* generateShorthandFile.rb */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.ruby; path = generateShorthandFile.rb; sourceTree = "<group>"; };
C763783113E10BEC0009A6CA /* GHUnitIOSTestMain.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GHUnitIOSTestMain.m; sourceTree = "<group>"; };
@@ -408,7 +399,6 @@
C7DD72D3150F832A00216827 /* MagicalRecordShorthand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MagicalRecordShorthand.h; sourceTree = "<group>"; };
C7DD72D4150F832A00216827 /* CoreData+MagicalRecord.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "CoreData+MagicalRecord.h"; sourceTree = "<group>"; };
C7E736DE1402FE64005657C9 /* SingleEntityWithNoRelationships.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = SingleEntityWithNoRelationships.json; path = "Unit Tests/Fixtures/SingleEntityWithNoRelationships.json"; sourceTree = "<group>"; };
- FD73E54814AC4D9A00922CA4 /* OCMock.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OCMock.framework; path = "../../Mac App Unit Tests/Frameworks/OCMock.framework"; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -418,9 +408,6 @@
files = (
C721C7DF13D0C3A00097AB6F /* Cocoa.framework in Frameworks */,
C721C82413D0C45E0097AB6F /* Foundation.framework in Frameworks */,
- C76AF7F213DBC12500CE2E05 /* OCHamcrest.framework in Frameworks */,
- C721C84E13D0C6460097AB6F /* GHUnit.framework in Frameworks */,
- FD73E53F14AC462F00922CA4 /* OCMock.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -432,10 +419,9 @@
C77E5F9E13D0CA2100298F87 /* CoreGraphics.framework in Frameworks */,
C721C82513D0C4660097AB6F /* Foundation.framework in Frameworks */,
C77E5F9B13D0CA0A00298F87 /* CoreData.framework in Frameworks */,
- C721C83C13D0C6390097AB6F /* GHUnitIOS.framework in Frameworks */,
- C721C83D13D0C6390097AB6F /* OCHamcrestIOS.framework in Frameworks */,
- C789901C150692860016F493 /* libOCMock.a in Frameworks */,
- C789901B150692140016F493 /* OCMock.framework in Frameworks */,
+ C74F8E601555E39D0008B054 /* GHUnitIOS.framework in Frameworks */,
+ C74F8E611555E39D0008B054 /* OCHamcrestIOS.framework in Frameworks */,
+ C74F8E621555E39D0008B054 /* libOCMock.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -518,31 +504,19 @@
C721C82E13D0C6390097AB6F /* Frameworks */ = {
isa = PBXGroup;
children = (
- FD73E54814AC4D9A00922CA4 /* OCMock.framework */,
+ C74F8E541555E39D0008B054 /* GHUnitIOS.framework */,
+ C74F8E551555E39D0008B054 /* OCHamcrestIOS.framework */,
+ C74F8E561555E39D0008B054 /* OCMockLibrary */,
C77E5F9F13D0CA2700298F87 /* UIKit.framework */,
C77E5F9C13D0CA1800298F87 /* CoreGraphics.framework */,
- C721C82F13D0C6390097AB6F /* GHUnitIOS.framework */,
- C721C83013D0C6390097AB6F /* OCHamcrestIOS.framework */,
- C721C83213D0C6390097AB6F /* OCMockLibrary */,
);
path = Frameworks;
sourceTree = "<group>";
};
- C721C83213D0C6390097AB6F /* OCMockLibrary */ = {
- isa = PBXGroup;
- children = (
- C721C83B13D0C6390097AB6F /* libOCMock.a */,
- );
- path = OCMockLibrary;
- sourceTree = "<group>";
- };
C721C84013D0C6460097AB6F /* Frameworks */ = {
isa = PBXGroup;
children = (
C721C7DE13D0C3A00097AB6F /* Cocoa.framework */,
- C721C84113D0C6460097AB6F /* GHUnit.framework */,
- C721C84213D0C6460097AB6F /* OCHamcrest.framework */,
- C721C84313D0C6460097AB6F /* OCMock.framework */,
C721C84413D0C6460097AB6F /* OCMockLibrary */,
);
path = Frameworks;
@@ -578,6 +552,36 @@
path = OCMock;
sourceTree = "<group>";
};
+ C74F8E561555E39D0008B054 /* OCMockLibrary */ = {
+ isa = PBXGroup;
+ children = (
+ C74F8E571555E39D0008B054 /* Headers */,
+ C74F8E5F1555E39D0008B054 /* libOCMock.a */,
+ );
+ path = OCMockLibrary;
+ sourceTree = "<group>";
+ };
+ C74F8E571555E39D0008B054 /* Headers */ = {
+ isa = PBXGroup;
+ children = (
+ C74F8E581555E39D0008B054 /* OCMock */,
+ );
+ path = Headers;
+ sourceTree = "<group>";
+ };
+ C74F8E581555E39D0008B054 /* OCMock */ = {
+ isa = PBXGroup;
+ children = (
+ C74F8E591555E39D0008B054 /* NSNotificationCenter+OCMAdditions.h */,
+ C74F8E5A1555E39D0008B054 /* OCMArg.h */,
+ C74F8E5B1555E39D0008B054 /* OCMConstraint.h */,
+ C74F8E5C1555E39D0008B054 /* OCMock.h */,
+ C74F8E5D1555E39D0008B054 /* OCMockObject.h */,
+ C74F8E5E1555E39D0008B054 /* OCMockRecorder.h */,
+ );
+ path = OCMock;
+ sourceTree = "<group>";
+ };
C76AF7F513DBC6E900CE2E05 /* Data Import Tests */ = {
isa = PBXGroup;
children = (
View
2  Project Files/Unit Tests/ImportSingleEntityWithNoRelationshipsTests.m
@@ -152,7 +152,7 @@ - (void) testImportDateAttributeToEntity
assertThat(testEntity.dateTestAttribute, is(equalTo(expectedDate)));
}
-- (void) testImportDataAttributeWithCustomFormat
+- (void) testImportDateAttributeWithCustomFormat
{
NSDate *expectedDate = [self dateFromString:@"2011-08-05 00:56:04 +0000"];
assertThat(testEntity.dateWithCustomFormat, is(equalTo(expectedDate)));
View
1  Project Files/iOS App Unit Tests/Frameworks/OCMock.framework/Headers
View
1  Project Files/iOS App Unit Tests/Frameworks/OCMock.framework/OCMock
View
1  Project Files/iOS App Unit Tests/Frameworks/OCMock.framework/Resources
View
15 ...es/iOS App Unit Tests/Frameworks/OCMock.framework/Versions/A/Headers/NSNotificationCenter+OCMAdditions.h
@@ -0,0 +1,15 @@
+//---------------------------------------------------------------------------------------
+// $Id$
+// Copyright (c) 2009 by Mulle Kybernetik. See License file for details.
+//---------------------------------------------------------------------------------------
+
+#import <Foundation/Foundation.h>
+
+@class OCMockObserver;
+
+
+@interface NSNotificationCenter(OCMAdditions)
+
+- (void)addMockObserver:(OCMockObserver *)notificationObserver name:(NSString *)notificationName object:(id)notificationSender;
+
+@end
View
33 Project Files/iOS App Unit Tests/Frameworks/OCMock.framework/Versions/A/Headers/OCMArg.h
@@ -0,0 +1,33 @@
+//---------------------------------------------------------------------------------------
+// $Id$
+// Copyright (c) 2009-2010 by Mulle Kybernetik. See License file for details.
+//---------------------------------------------------------------------------------------
+
+#import <Foundation/Foundation.h>
+
+@interface OCMArg : NSObject
+
+// constraining arguments
+
++ (id)any;
++ (void *)anyPointer;
++ (id)isNil;
++ (id)isNotNil;
++ (id)isNotEqual:(id)value;
++ (id)checkWithSelector:(SEL)selector onObject:(id)anObject;
+#if NS_BLOCKS_AVAILABLE
++ (id)checkWithBlock:(BOOL (^)(id))block;
+#endif
+
+// manipulating arguments
+
++ (id *)setTo:(id)value;
+
+// internal use only
+
++ (id)resolveSpecialValues:(NSValue *)value;
+
+@end
+
+#define OCMOCK_ANY [OCMArg any]
+#define OCMOCK_VALUE(variable) [NSValue value:&variable withObjCType:@encode(__typeof__(variable))]
View
64 Project Files/iOS App Unit Tests/Frameworks/OCMock.framework/Versions/A/Headers/OCMConstraint.h
@@ -0,0 +1,64 @@
+//---------------------------------------------------------------------------------------
+// $Id$
+// Copyright (c) 2007-2010 by Mulle Kybernetik. See License file for details.
+//---------------------------------------------------------------------------------------
+
+#import <Foundation/Foundation.h>
+
+
+@interface OCMConstraint : NSObject
+
++ (id)constraint;
+- (BOOL)evaluate:(id)value;
+
+// if you are looking for any, isNil, etc, they have moved to OCMArg
+
+// try to use [OCMArg checkWith...] instead of the constraintWith... methods below
+
++ (id)constraintWithSelector:(SEL)aSelector onObject:(id)anObject;
++ (id)constraintWithSelector:(SEL)aSelector onObject:(id)anObject withValue:(id)aValue;
+
+
+@end
+
+@interface OCMAnyConstraint : OCMConstraint
+@end
+
+@interface OCMIsNilConstraint : OCMConstraint
+@end
+
+@interface OCMIsNotNilConstraint : OCMConstraint
+@end
+
+@interface OCMIsNotEqualConstraint : OCMConstraint
+{
+ @public
+ id testValue;
+}
+
+@end
+
+@interface OCMInvocationConstraint : OCMConstraint
+{
+ @public
+ NSInvocation *invocation;
+}
+
+@end
+
+#if NS_BLOCKS_AVAILABLE
+
+@interface OCMBlockConstraint : OCMConstraint
+{
+ BOOL (^block)(id);
+}
+
+- (id)initWithConstraintBlock:(BOOL (^)(id))block;
+
+@end
+
+#endif
+
+
+#define CONSTRAINT(aSelector) [OCMConstraint constraintWithSelector:aSelector onObject:self]
+#define CONSTRAINTV(aSelector, aValue) [OCMConstraint constraintWithSelector:aSelector onObject:self withValue:(aValue)]
View
10 Project Files/iOS App Unit Tests/Frameworks/OCMock.framework/Versions/A/Headers/OCMock.h
@@ -0,0 +1,10 @@
+//---------------------------------------------------------------------------------------
+// $Id$
+// Copyright (c) 2004-2008 by Mulle Kybernetik. See License file for details.
+//---------------------------------------------------------------------------------------
+
+#import <OCMock/OCMockObject.h>
+#import <OCMock/OCMockRecorder.h>
+#import <OCMock/OCMConstraint.h>
+#import <OCMock/OCMArg.h>
+#import <OCMock/NSNotificationCenter+OCMAdditions.h>
View
43 Project Files/iOS App Unit Tests/Frameworks/OCMock.framework/Versions/A/Headers/OCMockObject.h
@@ -0,0 +1,43 @@
+//---------------------------------------------------------------------------------------
+// $Id$
+// Copyright (c) 2004-2008 by Mulle Kybernetik. See License file for details.
+//---------------------------------------------------------------------------------------
+
+#import <Foundation/Foundation.h>
+
+@interface OCMockObject : NSProxy
+{
+ BOOL isNice;
+ BOOL expectationOrderMatters;
+ NSMutableArray *recorders;
+ NSMutableArray *expectations;
+ NSMutableArray *rejections;
+ NSMutableArray *exceptions;
+}
+
++ (id)mockForClass:(Class)aClass;
++ (id)mockForProtocol:(Protocol *)aProtocol;
++ (id)partialMockForObject:(NSObject *)anObject;
+
++ (id)niceMockForClass:(Class)aClass;
++ (id)niceMockForProtocol:(Protocol *)aProtocol;
+
++ (id)observerMock;
+
+- (id)init;
+
+- (void)setExpectationOrderMatters:(BOOL)flag;
+
+- (id)stub;
+- (id)expect;
+- (id)reject;
+
+- (void)verify;
+
+// internal use only
+
+- (id)getNewRecorder;
+- (BOOL)handleInvocation:(NSInvocation *)anInvocation;
+- (void)handleUnRecordedInvocation:(NSInvocation *)anInvocation;
+
+@end
View
32 Project Files/iOS App Unit Tests/Frameworks/OCMock.framework/Versions/A/Headers/OCMockRecorder.h
@@ -0,0 +1,32 @@
+//---------------------------------------------------------------------------------------
+// $Id$
+// Copyright (c) 2004-2010 by Mulle Kybernetik. See License file for details.
+//---------------------------------------------------------------------------------------
+
+#import <Foundation/Foundation.h>
+
+@interface OCMockRecorder : NSProxy
+{
+ id signatureResolver;
+ NSInvocation *recordedInvocation;
+ NSMutableArray *invocationHandlers;
+}
+
+- (id)initWithSignatureResolver:(id)anObject;
+
+- (BOOL)matchesInvocation:(NSInvocation *)anInvocation;
+- (void)releaseInvocation;
+
+- (id)andReturn:(id)anObject;
+- (id)andReturnValue:(NSValue *)aValue;
+- (id)andThrow:(NSException *)anException;
+- (id)andPost:(NSNotification *)aNotification;
+- (id)andCall:(SEL)selector onObject:(id)anObject;
+#if NS_BLOCKS_AVAILABLE
+- (id)andDo:(void (^)(NSInvocation *))block;
+#endif
+- (id)andForwardToRealObject;
+
+- (NSArray *)invocationHandlers;
+
+@end
View
BIN  Project Files/iOS App Unit Tests/Frameworks/OCMock.framework/Versions/A/OCMock
Binary file not shown
View
42 Project Files/iOS App Unit Tests/Frameworks/OCMock.framework/Versions/A/Resources/Info.plist
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>BuildMachineOSBuild</key>
+ <string>10K549</string>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleExecutable</key>
+ <string>OCMock</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.mulle-kybernetik.OCMock</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>OCMock</string>
+ <key>CFBundlePackageType</key>
+ <string>FMWK</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1</string>
+ <key>DTCompiler</key>
+ <string>com.apple.compilers.llvm.clang.1_0</string>
+ <key>DTPlatformBuild</key>
+ <string>4C199</string>
+ <key>DTPlatformVersion</key>
+ <string>GM</string>
+ <key>DTSDKBuild</key>
+ <string>10K549</string>
+ <key>DTSDKName</key>
+ <string>macosx10.6</string>
+ <key>DTXcode</key>
+ <string>0420</string>
+ <key>DTXcodeBuild</key>
+ <string>4C199</string>
+ <key>NSHumanReadableCopyright</key>
+ <string>Copyright © 2004-2011 Mulle Kybernetik.</string>
+</dict>
+</plist>
View
BIN  ...ect Files/iOS App Unit Tests/Frameworks/OCMock.framework/Versions/A/Resources/en.lproj/InfoPlist.strings
Binary file not shown
View
1  Project Files/iOS App Unit Tests/Frameworks/OCMock.framework/Versions/Current
View
BIN  Project Files/iOS App Unit Tests/Frameworks/OCMockLibrary/libOCMock.a
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.