Skip to content

Instantly share code, notes, and snippets.

@rpkraemer
Created March 14, 2013 14:30
Show Gist options
  • Select an option

  • Save rpkraemer/5161797 to your computer and use it in GitHub Desktop.

Select an option

Save rpkraemer/5161797 to your computer and use it in GitHub Desktop.
Map Test
public class LoadTests extends UnitTestCase {
@Override
@Before
public void setUp() {
super.setUp();
}
@Test
public void shouldSaveALotOfPeople() {
for (int i = 0; i < 1000000; i++) {
Person person = givenAPerson(i);
person.save();
}
Assert.assertEquals(1000000, Find.from(Person.class).count());
}
}
@rpkraemer
Copy link
Author

Another point interesting to test is huge list manipulation. For example make a test that create several objets e make various filters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment