Commit Graph

19 Commits

Author SHA1 Message Date
Blake Watters
f93a044561 Add error condition when attempting to map an RKEntityMapping containing connection mappings with a nil managed object cache.
* Add support for the data source to fail mapping operation with an error.
* Clean up error handling within RKMappingOperation
2012-10-21 15:47:16 -04:00
Blake Watters
df55f0e524 Enable support for testing dynamic mappings with RKMappingTest 2012-10-18 14:09:00 -04:00
Blake Watters
845de91e80 Update RKMappingTest to support easier testing of RKEntityMapping objects by reducing the amount of required configuration to get a test configured. 2012-10-15 19:27:35 -04:00
Blake Watters
1c6564f823 Expand the capabilities of the RKMappingTest and RKMappingTestExpectation classes to support the Kiwi matchers.
* Enable evaluation blocks to return an NSError describing the failure
* Align all RKAttributeMapping references to RKPropertyMapping
* Cleanup docs
* Add `RKMappingTestExpectationTestCondition` macro for succinctly implementing mapping test evaluation blocks
* Clean up descriptions for better output from Kiwi
2012-09-29 17:54:52 -04:00
Blake Watters
5d41bf7ada Added new functionality to the mapping test to enable evaluating a single expectation without raising an exception. For use with the Kiwi matchers.
* Added error domain and codes specific for the mapper
* Migrated from using an NSString to real NSError objects
* Toned down the verbosity of error output for readability
* Cleaned up comment formatting
* Changed RKAttributeMapping to RKPropertyMapping for better alignment with the realities of the data model
2012-09-28 14:59:57 -04:00
Blake Watters
f16d995053 Remove unnecessary initializer and syntehsized ivars from RKMappingTest 2012-09-02 18:41:20 -04:00
Jawwad Ahmad
8cbdb5f7ed Trailing whitespace cleanup from files in the Code directory.
Used the following command from within the Code dir:
git ls-files *.m *.h *.json | xargs /usr/bin/sed -i '' -E 's/[[:space:]]*$//'
2012-09-02 12:51:45 -04:00
Blake Watters
a8f64e7982 Continued cleanup related to managed object context work 2012-07-17 13:44:50 -04:00
Blake Watters
b25a1833b3 Ported RestKit to using managed object contexts with concurrency types. Numerous cleanups and API updates. 2012-07-16 22:47:06 -04:00
Blake Watters
517deb6fa2 Add support for testing the mapping used to map a nested relationship in RKMappingTest. closes #802 2012-07-11 16:18:40 -04:00
Jawwad Ahmad
086dceee66 Standardize to have space after @property. Refs #614 2012-06-03 22:36:35 -04:00
Blake Watters
fcb973056b Cleanup trailing whitespace. refs #743 2012-05-17 18:00:16 -04:00
Blake Watters
423df93a59 Add Apache license notice to RKMappingTest 2012-04-04 09:08:55 -04:00
Blake Watters
457a6126cf Refresh copyright notices for all source files 2012-04-04 09:08:54 -04:00
Blake Watters
d633cf4c2d Updated RKMappingTest to make performMapping public and assign instantiated destinationObject to
the property to support testing portions of the mapping not expressed via key path transformations
(the connection of Core Data relationships, for example).
2012-04-03 23:39:42 -04:00
Blake Watters
212c243203 Added rootKeyPath option to RKMappingTest 2012-04-03 23:39:42 -04:00
Blake Watters
39d2311860 Added support for immediate verification of expectations. Expanded header documentation. refs #318 2012-03-09 09:04:24 -05:00
Blake Watters
9b6992a166 Added the designated initializer to the header file. fixes #575 2012-02-29 19:47:42 -05:00
Blake Watters
9e50b8cd4f Introduce RestKit unit testing classes 2012-02-17 20:16:31 -05:00