ActiveResourceKit  v1.2 (498.0)
 All Classes Files Functions Variables Typedefs Enumerator Properties Macros Pages
Instance Methods | Properties | List of all members
IncrementalStoreTests Class Reference

#import <IncrementalStoreTests.h>

Inheritance diagram for IncrementalStoreTests:
Inheritance graph
[legend]
Collaboration diagram for IncrementalStoreTests:
Collaboration graph
[legend]

Instance Methods

(void) - setUp [implementation]
 Builds a Core Data stack.
 
(void) - testPeople [implementation]
 
(void) - testPosts [implementation]
 
(void) - testComments [implementation]
 
(void) - testInsertAndDeletePerson [implementation]
 
(void) - testUpdatePerson [implementation]
 
(void) - testOnePostToManyComments [implementation]
 Tests one post to many comments association.
 
(void) - testOnePostToManyCommentsPartiallySaved [implementation]
 
(void) - testOnePostToManyCommentsPartiallySavedAndNullAttributes [implementation]
 Tests resource attributes carrying NSNull values.
 

Properties

NSManagedObjectContext * context
 
NSPersistentStoreCoordinator * coordinator
 
NSManagedObjectModel * model
 

Detailed Description

Definition at line 28 of file IncrementalStoreTests.h.

Method Documentation

- (void) setUp
implementation

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) testComments
implementation

Definition at line 107 of file IncrementalStoreTests.m.

- (void) testInsertAndDeletePerson
implementation

Definition at line 126 of file IncrementalStoreTests.m.

- (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

Definition at line 200 of file IncrementalStoreTests.m.

- (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) testPeople
implementation

Definition at line 77 of file IncrementalStoreTests.m.

- (void) testPosts
implementation

Definition at line 93 of file IncrementalStoreTests.m.

- (void) testUpdatePerson
implementation

Definition at line 142 of file IncrementalStoreTests.m.

Property Documentation

- (NSManagedObjectContext*) context
readwriteatomicstrong

Definition at line 30 of file IncrementalStoreTests.h.

- (NSPersistentStoreCoordinator *) coordinator
readatomicassign

Definition at line 31 of file IncrementalStoreTests.h.

- (NSManagedObjectModel *) model
readatomicassign

Definition at line 32 of file IncrementalStoreTests.h.


The documentation for this class was generated from the following files: