import java.sql.Date;
import java.util.ArrayList;
import java.util.List;

import ca.ualberta.cs.cmput301t03app.MainActivity;
import ca.ualberta.cs.cmput301t03app.Question;
import ca.ualberta.cs.cmput301t03app.User;
import ca.ualberta.cs.cmput301t03app.UserPostCollector;
import android.test.ActivityInstrumentationTestCase2;


public class FavoritesTest extends ActivityInstrumentationTestCase2<MainActivity> {

	public FavoritesTest() {
		super(MainActivity.class);
	}

	// Create a question array, add an array to the question array
	// Create a user post collector, specify to the post collector
	// that the previously added question is to be favourite
	// Use the get favourites method on the user post collector
	// assert that the initialized array is the same as the array
	// returned by get favourites
	
	public void testSaveFavorite() {
		
		ArrayList<Question> questionArray;
		User user = new User();
		UserPostCollector userCollect = new UserPostCollector();
		ArrayList<Question> ql = new ArrayList<Question>();
		
		Question q = new Question("Title1","TextBody1");
		
		ql.add(q);
		
		userCollect.addFavoriteQuestions(q);
		
		questionArray = userCollect.getFavoriteQuestions();
		
		assertEquals(ql, questionArray);
		
	}
}

@@ -852,11 +852,11 @@
 test
-Sav
+Mak
 eFav
@@ -1275,11 +1275,65 @@
 %09%09%0D%0A%09%7D%0D%0A
+%09%0D%0A%09public void testSaveFavorites() %7B%0D%0A%09%09fail();%0D%0A%09%7D%0D%0A
 %7D%0D%0A

Update FavoritesTest.java