Skip to content

Instantly share code, notes, and snippets.

@mguillermin
Created March 2, 2012 20:17
Show Gist options
  • Save mguillermin/1960997 to your computer and use it in GitHub Desktop.
Save mguillermin/1960997 to your computer and use it in GitHub Desktop.
@Test
public void save() {
running(fakeApplication(), new Runnable() {
public void run() {
// Here is your real test code
Company company = new Company("My Company");
company.save();
assertThat(company.id).isNotNull();
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment