Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CP-2761 Add test/mock utility to define and verify exact sequence of expected requests #204

Open
evanweible-wf opened this issue Aug 2, 2016 · 1 comment

Comments

@evanweible-wf
Copy link
Contributor

evanweible-wf commented Aug 2, 2016

MockTransports.http.expectSequence or MockTransports.http.expectInOrder

Would probably require the addition of a public class for expectations:

class Expectation {
  Expectation.forUri(String method, Uri uri, {bool reject, Response respondWith});
  Expectation.forPattern(String method, Pattern pattern, {bool reject, Response respondWith});
  bool isMatch(String method, Uri uri);
}
MockTransports.http.expectSequence(Iterable<Expectation> expectations);
@rmconsole2-wf rmconsole2-wf changed the title Add test/mock utility to define and verify exact sequence of expected requests CP-2761 Add test/mock utility to define and verify exact sequence of expected requests Oct 10, 2016
@evanweible-wf
Copy link
Contributor Author

A more flexible approach might be to allow recording HTTP requests & WebSocket connections for a finite period of time. See #240

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant