Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class SomeTest extends TestCase
- {
- private final List list = new ArrayList();
- public void testPopulateList()
- {
- // Add stuff to the list
- // Assert the list contains what I expect
- }
- }
- public class SomeTest extends TestCase
- {
- private List list;
- @Override
- protected void setUp() throws Exception
- {
- super.setUp();
- this.list = new ArrayList();
- }
- public void testPopulateList()
- {
- // Add stuff to the list
- // Assert the list contains what I expect
- }
- }
Add Comment
Please, Sign In to add comment