gradebookng/tool/src/test/org/sakaiproject/gradebookng/business/util/TestImportGradesHelper.java
private List<Assignment> mockAssignments() {
		final List<Assignment> assignments = new ArrayList<Assignment>();
		final Assignment assignment1 = new Assignment();
		assignment1.setId(1L);
		assignment1.setName("Assignment 1");
		assignment1.setPoints(10.0);
		assignments.add(assignment1);

		final Assignment assignment2 = new Assignment();
		assignment2.setId(2L);
		assignment2.setName("Assignment 2");
		assignment2.setPoints(100.0);
		assignments.add(assignment2);

		final Assignment assignment3 = new Assignment();
		assignment3.setId(3L);
		assignment3.setName("Assignment Ext");
		assignment3.setPoints(1000.0);
		assignment3.setExternalAppName("From a test");
		assignment3.setExternalId("ext_asdf");
		assignments.add(assignment3);

		return assignments;
	}
/**
	 * Mock up some EXISTING assignment data
	 *
	 * @return List of mocked assignments
	 */
Mock up some EXISTING assignment data
@return List of mocked assignments
Mock up some EXISTING assignment data @return List of mocked assignments
private List<Assignment> mockAssignments() {
		final List<Assignment> assignments = new ArrayList<Assignment>();
		final Assignment assignment1 = new Assignment();
		assignment1.setId(1L);
		assignment1.setName("Assignment 1");
		assignment1.setPoints(10.0);
		assignments.add(assignment1);
		final Assignment assignment2 = new Assignment();
		assignment2.setId(2L);
		assignment2.setName("Assignment 2");
		assignment2.setPoints(100.0);
		assignments.add(assignment2);
		final Assignment assignment3 = new Assignment();
		assignment3.setId(3L);
		assignment3.setName("Assignment Ext");
		assignment3.setPoints(1000.0);
		assignment3.setExternalAppName("From a test");
		assignment3.setExternalId("ext_asdf");
		assignments.add(assignment3);
		return assignments;
	}
private List < Assignment > mockAssignments ( ) { final List < Assignment > assignments = new ArrayList < Assignment > ( ) ; final Assignment assignment1 = new Assignment ( ) ; assignment1 . setId ( 1L ) ; assignment1 . setName ( "Assignment 1" ) ; assignment1 . setPoints ( 10.0 ) ; assignments . add ( assignment1 ) ; final Assignment assignment2 = new Assignment ( ) ; assignment2 . setId ( 2L ) ; assignment2 . setName ( "Assignment 2" ) ; assignment2 . setPoints ( 100.0 ) ; assignments . add ( assignment2 ) ; final Assignment assignment3 = new Assignment ( ) ; assignment3 . setId ( 3L ) ; assignment3 . setName ( "Assignment Ext" ) ; assignment3 . setPoints ( 1000.0 ) ; assignment3 . setExternalAppName ( "From a test" ) ; assignment3 . setExternalId ( "ext_asdf" ) ; assignments . add ( assignment3 ) ; return assignments ; }
Mock up some EXISTING assignment data
 @return List of mocked assignments
Mock up some EXISTING assignment data @return List of mocked assignments