@Override protected void setUp() throws Exception { super.setUp(); Date tempDate = Calendar.getInstance().getTime(); Picture tempPic = new Picture("temp", "temp", "temp", tempDate, new ArrayList<Tag>()); // The EditPictureActivity will only use the ID of the given picture, as set below tempPic.setID(1); Intent editPicIntent = new Intent(); editPicIntent.setClassName( "com.cs301w01.meatload", "com.cs301w01.meatload.activities.EditPicturesActivity"); editPicIntent.putExtra("picture", tempPic); setActivityIntent(editPicIntent); mActivity = getActivity(); mContext = mActivity.getBaseContext(); }