Created
December 14, 2010 16:36
-
-
Save bclinkinbeard/740663 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// someResponse.amf3 is a data file saved from Charles, ServiceCapture, etc. | |
// embedded in a class for easy access | |
[Embed( source="data/someResponse.amf3", mimeType="application/octet-stream" )] | |
public static const savedCallResponse:Class; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MockDelegateHelper is a class provided by Swiz | |
[Inject] | |
public var mdh:MockDelegateHelper; | |
// methods in mock delegate can pull saved data and use Swiz's AMFUtil to parse it | |
public function fetchDistrictsAndSchools():AsyncToken | |
{ | |
return mdh.createMockResult( AMFUtil.getAMF3Data( MockData.savedCallResponse ) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment