Skip to content

Instantly share code, notes, and snippets.

@Dalamar42
Last active June 14, 2016 17:50
Show Gist options
  • Save Dalamar42/7f210e3aa22d6c0ee0fb832dcb9b929f to your computer and use it in GitHub Desktop.
Save Dalamar42/7f210e3aa22d6c0ee0fb832dcb9b929f to your computer and use it in GitHub Desktop.
public class ThingTester {
private ThingDoer doer = new ThingDoer();
@Test
public void testAllTheThings() {
assertThat(doer.doTheThing(), is("theThing"));
assertThat(doer.doTheOtherThing(), is("theOtherThing"));
assertThat(doer.doTheThirdThing(), is(false));
// Repeat for 39 more assertions...
}
@Test
public void testOneThing() {
assertThat(doer.doTheThing(), is("theThing"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment