Commit Graph

101 Commits

Author SHA1 Message Date
Blake Watters
877ce255b5 Expand test coverage and fix situations where requests would unexpectedly initialize incorrectly without error
* RKObjectParameterization now returns an empty dictionary if mapping produces an unmappable representation error (no mappable attributes/relationships found)
* Log errors if request construction results in an NSError and return nil
* Ensure errors are passed back up through object parameterization instead of just returning nil
* Reset the serialization MIME Type registry during RKTestFactory set up to ensure it is in a sane state
* Convert Hamcrest matchers to Expecta in the object mapper tests to fix infinite recursion on test failure (will need to completely phase out Hamcrest soon)
2012-10-05 19:16:55 -04:00
Blake Watters
0dc21fb95d Add caching helpers to the RKTestHelpers interface 2012-10-05 14:22:56 -04:00
Blake Watters
a10df02bf9 Add RKTestHelpers class containing helpful methods when working with object managers in unit and integration tests 2012-10-02 22:55:17 -04:00
Blake Watters
bacb6e8ba4 Remove RKTestResponseLoader 2012-10-02 22:10:36 -04:00
Blake Watters
174372dcf5 Fix a number of warnings about potential dereference of null pointer 2012-10-02 15:52:45 -04:00
Blake Watters
3fc5a75a3a Tear down the search indexing environment as part of RKTestFactory tear down 2012-10-01 17:38:07 -04:00
Blake Watters
991a6fd733 Add cancellation of all oeprations during test factory tear down 2012-10-01 11:53:28 -04:00
Blake Watters
d95fe5cd44 Break out reused functions for object mapping introspection into RKObjectUtilities 2012-09-30 12:49:59 -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
4230c63f80 Add support for shared factory object instances 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
8a449a0fd4 Remove dead logging components 2012-09-27 20:16:20 -04:00
Blake Watters
fd16081797 Merge pull request #950 from aharren/feature/reboot-networking-layer
Use embedded variant of LibComponentLogging with prefix RK
2012-09-27 16:13:42 -07:00
Blake Watters
6c463bfb6b Raise an exception if the fixture fails to parse rather than returning nil 2012-09-27 17:05:25 -04:00
Arne Harren
bc7c65f03b Switch to an embedded variant of LibComponentLogging with prefix RK 2012-09-27 21:47:36 +02:00
Blake Watters
235f5fc579 Fix all build errors in unit tests. Restore execution of core mapping tests. 2012-09-24 22:44:20 -04:00
Blake Watters
654364af61 Document RKDynamicMappingMatcher and clean up API 2012-09-21 22:59:43 -04:00
Blake Watters
43be066e0b Docs touch ups 2012-09-21 22:58:17 -04:00
Blake Watters
6815ba6444 API refresh for mapping layer. Converted RKObjectMapper to RKMapperOperation. Expanded documentation. 2012-09-21 17:55:32 -04:00
Jeff Arena
6d11a5f88a Add additional cache clearing to address KIF issues. 2012-09-21 16:47:17 -04:00
Blake Watters
7e816904ff Docs update. Eliminate mappingOperationFromObject: 2012-09-20 19:11:38 -04:00
Blake Watters
bd4130a546 Eliminate aggregate import of RestKit.h from .NET date formatter and test factory 2012-09-20 11:59:02 -04:00
Blake Watters
991ced34da Docs for mapping operation data source. Still don't love the method names. Maybe we can eliminate this somehow... 2012-09-20 08:12:29 -04:00
Blake Watters
b6e8050842 Remove shared instance configuration from the test factory. Instances should be explicitly managed for sanity. 2012-09-19 12:15:55 -04:00
Blake Watters
ce0badad4c Docs formatting refresh on the test factory 2012-09-19 12:15:16 -04:00
Blake Watters
fea908702d Don't clear defaultDateFormatters during Test Factory setUp 2012-09-18 15:54:36 -04:00
Blake Watters
ef0462ec2a Appledoc warning fixes 2012-09-13 07:27:48 -04:00
Blake Watters
f636f8681a Fix warning 2012-09-12 21:16:24 -04:00
Blake Watters
3afc7c3501 Misc updates to RKTestFactory
* Add `objectFromFactory:properties:` this may deprecate `objectFromFactory:` in the future.
* Add `insertManagedObjectForEntityForName:inManagedObjectContext:withProperties:`. This helper method creates managed object instances in a given context (defaulting to the main queue context), sets its properties using an optional dictionary, and obtains a permanent `NSManagedObjectID` before returning. This is intended to reduce the boilerplate required to construct managed object factories.
2012-09-12 16:29:46 -04:00
Blake Watters
c1cb8c881d Migrate directory utilities to path utilities. Move Bundle category to Testing 2012-09-11 16:46:33 -04:00
Blake Watters
bed7779be4 Kill default mapping queue. Basic header docs for RKObjectManager 2012-09-06 11:48:31 -04:00
Blake Watters
22a68baf0c Rework podspec to organize header file imports to match existing RestKit releases 2012-09-05 11:04:42 -04:00
Blake Watters
a74b8717dc Pulling out RKURL in favor of vanilla NSURL 2012-09-03 17:07:09 -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
Jawwad Ahmad
c70ab49457 Delete @synthesize statements that are no longer needed. (Works with current 4.4.1 release of Xcode). 2012-09-02 12:28:45 -04:00
Blake Watters
114ac214b1 Remove mapping provider test factory definition 2012-08-29 19:00:11 -04:00
Blake Watters
fe3b710e9a Add RK prefix to module header files to disambiguate on import from CocoaPods 2012-08-28 21:01:07 -04:00
Blake Watters
ce6b0829e4 Convert RestKit to ARC 2012-08-28 17:34:58 -04:00
Blake Watters
274478448d FIXUP: Merge with "Drop RestKit networking layer in favor of AFNetworking" 2012-08-28 16:32:15 -04:00
Blake Watters
d08046fc5d Remove the mapping provider in favor of response descriptors 2012-08-28 16:31:31 -04:00
Blake Watters
2c7f772773 FIXUP: Merge with Table Controller commit 2012-08-28 16:18:17 -04:00
Blake Watters
d36aa3291d Drop RestKit networking layer in favor of AFNetworking 2012-08-28 16:17:57 -04:00
Blake Watters
6b1e9fa071 Update error message to reflect correct class name 2012-08-28 14:14:33 -04:00
Blake Watters
37c70e4c27 Migrate path utilities to C functions instead of encapsulating into static methods on RKDirectory to reduce API size 2012-08-14 09:57:27 -04:00
Blake Watters
07aadeebdf Reimplemented the managed object store, converted managed object seeder to importer, cleaned up test breakage. 2012-07-26 17:33:35 -04:00
Blake Watters
e952f451fb Eliminated the use of the ActiveRecord pattern across the library. 2012-07-20 14:48:09 -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
f0706dbdbf Work in progress
Conflicts:
	Code/CoreData/RKManagedObjectLoader.h
	Code/CoreData/RKManagedObjectLoader.m
	Code/CoreData/RKManagedObjectMapping.m
	Code/CoreData/RKManagedObjectMappingOperation.m
	Code/CoreData/RKManagedObjectStore.m
	Code/CoreData/RKManagedObjectThreadSafeInvocation.h
	Code/CoreData/RKManagedObjectThreadSafeInvocation.m
	Code/CoreData/RKSearchableManagedObject.m
	Code/ObjectMapping/RKObjectLoader.m
	Code/ObjectMapping/RKObjectMapper.h
	Code/ObjectMapping/RKObjectMappingOperation.m
	RestKit.xcodeproj/project.pbxproj
	Tests/Logic/CoreData/RKManagedObjectThreadSafeInvocationTest.m
2012-07-13 13:07:42 -04:00