{"id":13744841,"url":"https://github.com/blegros/flexRpcStubs","last_synced_at":"2025-05-09T04:30:57.858Z","repository":{"id":136502942,"uuid":"510607","full_name":"blegros/flexRpcStubs","owner":"blegros","description":"Stubs for service classes in the Flex SDK package mx.rpc","archived":true,"fork":false,"pushed_at":"2011-04-11T19:31:19.000Z","size":1790,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-04T05:05:01.556Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"ActionScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blegros.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-02-10T02:26:13.000Z","updated_at":"2023-01-28T00:18:40.000Z","dependencies_parsed_at":"2023-03-13T11:01:01.910Z","dependency_job_id":null,"html_url":"https://github.com/blegros/flexRpcStubs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blegros%2FflexRpcStubs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blegros%2FflexRpcStubs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blegros%2FflexRpcStubs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blegros%2FflexRpcStubs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blegros","download_url":"https://codeload.github.com/blegros/flexRpcStubs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224811263,"owners_count":17373934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T05:01:17.098Z","updated_at":"2024-11-15T16:32:02.349Z","avatar_url":"https://github.com/blegros.png","language":"ActionScript","funding_links":[],"categories":["API"],"sub_categories":["Other API"],"readme":"# Flex RPC Stubs\n\nThis project's goal is provide a simple to use set of stubs to supplement unit tests for objects\nwith dependencies on service classes from the Flex SDK (i.e. - HTTPService, RemoteObject).  This\nproject is based on a PoC described @ http://brianlegros.com/blog\n(http://www.brianlegros.com/blog/2009/02/21/using-stubs-for-httpservice-and-remoteobject-in-flex/).\n\n## Build Instructions\nTo build the SWC for this library, run the build.xml found in the root of this project with its \ndefault settings.  Please note that the environment variable FLEX_HOME must be set for this build \nto function correctly.  Please also note that the FlashBuilder project is an application setup to\nexecute the FlexUnit tests using the UIListener rather than the built-in FlexUnit4 support;\nthe project cannot be used as a library project.\n\n## Examples\n[HTTPServiceStub Example](http://github.com/blegros/flexRpcStubs/tree/master/src/test/flex/mx/rpc/http/test/sample/) \nshows the use of HTTPServiceStub to create a unit test for a domain/model class which has an HTTPService \ndependency.\n\n[RemoteObjectStub Example](http://github.com/blegros/flexRpcStubs/tree/master/src/test/flex/mx/rpc/remoting/test/sample/) \nshows the use of RemoteObjectStub to create a unit test for controller class which has a RemotObject \ndependency.\n\nDISCLAIMER: Please note these example unit tests are meant to serve as examples only.  They are not \nintended to infer best practices or dictate preferred implementations.\n\n## Change Log\n###0.3\n- Fixed bug with RemoteOperationStub where ResultEvent and FaultEvent were not being dispatched as\nthey are on the stub itself.  Thanks to ropp.\n- Added support for the direct use of RegEx, Date, and Class in the result() and fault() methods of\nHTTPServiceStub and RemoteObjectStub rather than having to explicitly use Hamcrest matchers of the\nsame type.  Borrowed the implementation from Mockolate (http://github.com/drewbourne/mockolate).\n- Add support for matching on the \"method\" property of HTTPService\n- Updated default delay on HTTPServiceStub to 500ms rather than 1s\n\n### 0.2\n- Added support for Hamcrest matchers within parameters to HTTPServiceStub and RemoteObjectStub\n- Added support for header matching on HTTPServiceStub\n- Added more detailed samples for using HTTPServiceStub and RemoteObjectStub\n\n### 0.1\n- Initial import of project\n\n## Roadmap\n- Add a stubs for:\n  - HTTPMultiService\n  - WebService\n  - ModuleLoader\n  - SWFLoader\n  - Image\n  - URLRequest\n  - etc\n- Add better error handling\n\nLicense Available @ http://github.com/blegros/flexRpcStubs/blob/master/LICENSE","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblegros%2FflexRpcStubs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblegros%2FflexRpcStubs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblegros%2FflexRpcStubs/lists"}