Skip to content

Instantly share code, notes, and snippets.

@mmadson
Last active December 20, 2015 06:28
Show Gist options
  • Save mmadson/6085628 to your computer and use it in GitHub Desktop.
Save mmadson/6085628 to your computer and use it in GitHub Desktop.
Awesome unit test
@Test
public void testHelloWorldServiceWithSpecialMessage_returnsTheAnswerToLife()
throws Exception
{
expect().body(containsString("the answer to life the universe and everything")).when().get("/hello/42");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment