Created
March 14, 2013 14:30
-
-
Save rpkraemer/5161797 to your computer and use it in GitHub Desktop.
Map Test
This file contains hidden or 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
| 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()); | |
| } | |
| } | |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Another point interesting to test is huge list manipulation. For example make a test that create several objets e make various filters.