Skip to content

Instantly share code, notes, and snippets.

@minisu
Created March 24, 2014 13:34
Show Gist options
  • Save minisu/9740154 to your computer and use it in GitHub Desktop.
Save minisu/9740154 to your computer and use it in GitHub Desktop.
@Test
public void shouldSendRequests() throws Exception
{
Multiset<String> expectedRequests = ImmutableMultiset.of(
"GET http://www.example.org/image1.png",
"GET http://www.example.org/style.css"
);
// WHEN
triggerAndWait();
// THEN
Multiset<String> actualRequests = httpClient.popAllRequests();
assertEquals( expectedRequests, actualRequests );
CounterAsserter.oneSuccessfulRequest( component.getContext() );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment