YYTestHelper.h 636 B

123456789101112131415161718192021
  1. //
  2. // YYTestHelper.h
  3. // YYModel <https://github.com/ibireme/YYModel>
  4. //
  5. // Created by ibireme on 15/11/28.
  6. // Copyright (c) 2015 ibireme.
  7. //
  8. // This source code is licensed under the MIT-style license found in the
  9. // LICENSE file in the root directory of this source tree.
  10. //
  11. #import <Foundation/Foundation.h>
  12. @interface YYTestHelper : NSObject
  13. + (NSString *)jsonStringFromData:(NSData *)data;
  14. + (NSString *)jsonStringFromObject:(id)object;
  15. + (id)jsonObjectFromData:(NSData *)data;
  16. + (id)jsonObjectFromString:(NSString *)string;
  17. + (NSData *)jsonDataFromString:(NSString *)string;
  18. + (NSData *)jsonDataFromObject:(id)object;
  19. @end