Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Add Mocking Support #44

Open
naaman opened this issue Jun 11, 2012 · 0 comments
Open

Add Mocking Support #44

naaman opened this issue Jun 11, 2012 · 0 comments

Comments

@naaman
Copy link

naaman commented Jun 11, 2012

Tests should have a simple mocking framework for HTTP request/response.

e.g.

Connection connection = new MockHttpConnection();
connection.setExpectedResponse("{\"name\":\"app name\"}");
App app = connection.execute(new CreateApp(...), apiKey);
assertEquals(app.getName(), "app name");
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant