-
Notifications
You must be signed in to change notification settings - Fork 590
Open
Labels
Feature RequestValid feature request to add to the backlogValid feature request to add to the backlog
Description
Is your feature request related to a problem? Please describe.
The ability to chain and order expectations in the MockClient
Describe the solution you'd like
this is a simple example. This should work but the first assert fails because the the last expect overrides the first one
var mock = MockClient.register();
mock.expect(GET,"http://path/one").thenReturn(FORBIDDEN);
mock.expect(GET,"http://path/one").thenReturn(OK);
assertEquals(FORBIDDEN, Unirest.get("http://path/one").asEmpty().getStatus());
assertEquals(OK, Unirest.get("http://path/one").asEmpty().getStatus());Metadata
Metadata
Assignees
Labels
Feature RequestValid feature request to add to the backlogValid feature request to add to the backlog