@@ -0,0 +1,614 @@
+package ca.ualberta.cs.routinekeen;%0Aimport org.junit.Test;%0Aimport java.util.Date;%0Aimport static org.junit.Assert.*;%0A%0Apublic class testLocation %7B%0A  @Test%0A  %0A  public void testPhoto() throws Exception %7B%0A    String testHabitEventTitle = %22Test HabitEvent title%22;%0A    HabitEvent testHabitEvent = new HabitEvent(testHabitEventTitle);%0A    %0A    byte%5B%5D testByteArray = new BigInteger(%221111000011110000%22, 2).toByteArray();%0A    testHabitEvent.addPhoto(testByteArray);%0A    assertArrayEquals(testHabitEvent.getImage(), testByteArray);%0A    %0A    testHabitEvent.deleteImage();%0A    assertNull(testHabitEvent.getImage());%0A%0A  %7D%0A  %0A%7D%0A

add photo entity