Created
March 24, 2014 13:34
-
-
Save minisu/9740154 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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