#import <IncrementalStoreTests.h>
Definition at line 28 of file IncrementalStoreTests.h.
Builds a Core Data stack.
Loads the data model, initialises the coordinator with the model, adds the incremental store to the coordinator, finally attaches the coordinator to a new main-queue context.
Definition at line 52 of file IncrementalStoreTests.m.
- (void) testInsertAndDeletePerson |
|
|
|
|
implementation |
- (void) testOnePostToManyComments |
|
|
|
|
implementation |
Tests one post to many comments association.
What happens when you instantiate two entities and wire them up entirely at the client side first? Test it! Create a post with one comment. Construct the post, comment and their relationship within the client at first. Then save the context in order to transfer the objects and their relationship to the remote server. Thereafter, throw away the comment and refetch the comment by dereferencing the post's "comments" relationship.
Definition at line 168 of file IncrementalStoreTests.m.
- (void) testOnePostToManyCommentsPartiallySaved |
|
|
|
|
implementation |
- (void) testOnePostToManyCommentsPartiallySavedAndNullAttributes |
|
|
|
|
implementation |
Tests resource attributes carrying NSNull values.
Nulls become nils within managed objects. All missing properties within managed objects become nils when accessed. The following tests that the nulls within resources become nils when manifested by Core Data.
Definition at line 260 of file IncrementalStoreTests.m.
- (void) testUpdatePerson |
|
|
|
|
implementation |
- (NSManagedObjectContext*) context |
|
readwriteatomicstrong |
- (NSPersistentStoreCoordinator *) coordinator |
|
readatomicassign |
- (NSManagedObjectModel *) model |
|
readatomicassign |
The documentation for this class was generated from the following files: