Created
September 24, 2010 14:39
-
-
Save oxlade39/595490 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
// where ten().getValue() returns the Integer 10 in 200 millis | |
@Test public void withoutEventuallyWeGetNull() throws Exception { | |
assertThat(ten().getValue(), nullValue()); | |
} | |
@Test public void withEventuallyICanAssertWhatTheValueWillEventuallyReturn() throws Exception { | |
assertThat(eventually(ten()).getValue(), willReturn(10)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment