CSC/ECE 517 Fall 2009/wiki1a 1 JunitTest: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
'''Writing Effective Junit Test Cases'''
'''Writing Effective Junit Test Cases'''
<s>
/**
* Sets up the test fixture.
* (Called before every test case method.)
*/
@Before
public void setUp() {
emptyList = new java.util.ArrayList();
}
/<s>

Revision as of 23:18, 6 September 2009

Writing Effective Junit Test Cases

/**

  • Sets up the test fixture.
  • (Called before every test case method.)
  • /

@Before public void setUp() { emptyList = new java.util.ArrayList(); }

/