Questions tagged [rkmappingtest]

An RKMappingTest object provides support for unit testing a RestKit object mapping operation by evaluation expectations against events recorded during an object mapping operation.

2 questions
4
votes
2 answers

Restkit 0.22.0 how to map a simple JSON response with no keyPath to post

For simplicity the Rest API, sends this JSON response-body= { "status" : "ok"}. I set-up my Restkit mappings like... created a Class called StatusResponse which has one @property (nonatomic, assign) NSString *status; RKObjectMapping…
user3337849
  • 99
  • 1
  • 8
1
vote
2 answers

RestKit RKMappingTest JSON array

I'm using RestKit ~> 0.20.3 and RestKit/Testing ~> 0.20.3. So this is an example of my mapping: RKObjectMapping *mapping = [RKObjectMapping mappingForClass:[PlayerVO class]]; [mapping addAttributeMappingsFromArray:@[@"firstName", @"middeName",…
Ahmed Nuaman
  • 12,662
  • 15
  • 55
  • 87