Last active
September 27, 2015 10:28
-
-
Save tonypiazza/1255692 to your computer and use it in GitHub Desktop.
Example usage of the timeout attribute of the org.junit.Test annotation
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(timeout=3000) | |
public void canGetListOfAllPastAuctions() throws ServiceException { | |
AuctionService service = new BaseAuctionService(); | |
service.loadAuctionHistory(); | |
Collection<Auction> pastAuctions = service.getPastAuctions(); | |
assertNotNull("unable to get past auctions", pastAuctions); | |
assertTrue("no past auctions", pastAuctions.size() > 0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment